October 8, 201016 yr Ok, Im trying to add Nivo Slider to a normal html page that Ive built in Dreamweaver, Ive been to http://nivo.dev7studios.com/ and downloaded the files and put them on my server, where the site is, they are: jquery.nivo.slider.pack.js nivo-slider.css On the Nivo webpage, it givesme 3 pieces of code for usage, they are: <link rel="stylesheet" href="nivo-slider.css" type="text/css" media="screen" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> <script src="jquery.nivo.slider.pack.js" type="text/javascript"></script> ----------------------------- <div id="slider"> <img src="images/slide1.jpg" alt="" /> <a href="http://dev7studios.com"><img src="images/slide2.jpg" alt="" title="#htmlcaption" /></a> <img src="images/slide3.jpg" alt="" title="This is an example of a caption" /> <img src="images/slide4.jpg" alt="" /> </div> <div id="htmlcaption" class="nivo-html-caption"> <strong>This</strong> is an example of a <em>HTML</em> caption with <a href="#">a link</a>. </div> *In my actual ones Ive changed the image file path to where my files are* ----------------------------- <script type="text/javascript"> $(window).load(function() { $('#slider').nivoSlider(); }); </script> Does anyone know where I need to put these pieces of code? Ive had a go myself, and the images appear one above the other going down the page Thanks Gem
October 8, 201016 yr Ok, Im trying to add Nivo Slider to a normal html page that Ive built in Dreamweaver, Ive been to http://nivo.dev7studios.com/ and downloaded the files and put them on my server, where the site is, they are: jquery.nivo.slider.pack.js nivo-slider.css On the Nivo webpage, it givesme 3 pieces of code for usage, they are: <link rel="stylesheet" href="nivo-slider.css" type="text/css" media="screen" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> <script src="jquery.nivo.slider.pack.js" type="text/javascript"></script> ----------------------------- <div id="slider"> <img src="images/slide1.jpg" alt="" /> <a href="http://dev7studios.com"><img src="images/slide2.jpg" alt="" title="#htmlcaption" /></a> <img src="images/slide3.jpg" alt="" title="This is an example of a caption" /> <img src="images/slide4.jpg" alt="" /> </div> <div id="htmlcaption" class="nivo-html-caption"> <strong>This</strong> is an example of a <em>HTML</em> caption with <a href="#">a link</a>. </div> *In my actual ones Ive changed the image file path to where my files are* ----------------------------- <script type="text/javascript"> $(window).load(function() { $('#slider').nivoSlider(); }); </script> Does anyone know where I need to put these pieces of code? Ive had a go myself, and the images appear one above the other going down the page Thanks Gem you need to add them like this <head> <link rel="stylesheet" href="your-sites-css-folder/nivo-slider.css" type="text/css" media="screen" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> <script src="your-sites-javascript-folder/jquery.nivo.slider.pack.js" type="text/javascript"></script> then after that you need to load the script <script type="text/javascript"> $(window).load(function() { $('#slider').nivoSlider(); }); </script> </head> hope that helps
October 8, 201016 yr <link rel="stylesheet" href="nivo-slider.css" type="text/css" media="screen" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> <script src="jquery.nivo.slider.pack.js" type="text/javascript"></script> <script type="text/javascript"> $(window).load(function() { $('#slider').nivoSlider(); }); </script> Will go within the <head></head> tags.
October 9, 201016 yr Author Aha, its working Thanks I want to remove the '1234' that keeps appearing at the top left of the pics. Anyone know how to sort this? Ive been looking in the css file.... http://www.sussexwebsitedesign.net/newalpine/test.html Thanks Gem
October 9, 201016 yr checked here http://nivo.dev7studios.com/ I suspect you will have to tell it not to in the parameters. From the site <script type="text/javascript"> $(window).load(function() { $('#slider').nivoSlider({ effect:'random', //Specify sets like: 'fold,fade,sliceDown' slices:15, animSpeed:500, //Slide transition speed pauseTime:3000, startSlide:0, //Set starting Slide (0 index) directionNav:true, //Next & Prev directionNavHide:true, //Only show on hover controlNav:true, //1,2,3... controlNavThumbs:false, //Use thumbnails for Control Nav controlNavThumbsFromRel:false, //Use image rel for thumbs controlNavThumbsSearch: '.jpg', //Replace this with... controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src keyboardNav:true, //Use left & right arrows pauseOnHover:true, //Stop animation while hovering manualAdvance:false, //Force manual transitions captionOpacity:0.8, //Universal caption opacity beforeChange: function(){}, afterChange: function(){}, slideshowEnd: function(){} //Triggers after all slides have been shown }); }); </script> at a guess you need to supply controlNav:false
Create an account or sign in to comment