javascript - Which js files to link to the html file using Foundation 3 Orbit? -
i trying create orbit slider on website, however, when run webpage in web browser, orbit slider should be, see:
$(window).load(function() { $("#featured").orbit(); });
i guessing because html document not linked correct javascript files. site linked jquery.js, foundation.min.js, , jquery.foundation.orbit.js. wrong files linked html file or there problem?
the code slider's div this:
<div id="featured"> <img src="example_pics/example1.jpg /> <img src="example_pics/example2.jpg /> <img src="example_pics/example3.jpg /> </div>
and actual javascript this:
<script type="text/javascript"> $(window).load(function() { $("#featured").orbit(); }); </script>
any or tips appreciated
<script src="js/jquery.min.js" type="text/javascript"></script> <script src="js/jquery.orbit.min.js" type="text/javascript"></script> <link rel="stylesheet" href="css/orbit.css">
Comments
Post a Comment