{"id":6715,"date":"2011-03-18T01:29:00","date_gmt":"2011-03-18T05:29:00","guid":{"rendered":"http:\/\/info.template-help.com\/?p=6715"},"modified":"2013-02-12T12:53:43","modified_gmt":"2013-02-12T17:53:43","slug":"jquery-nivoslider","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/jquery-nivoslider.html","title":{"rendered":"jQuery \u2018NivoSlider\u2019"},"content":{"rendered":"<ul class=\"desc-links\">\r\n\t<li><a href=\"http:\/\/livedemo00.template-help.com\/joomla_37418\/\" class=\"live-demo-button\" target=\"_blank\">Live Demo<\/a><\/li>\r\n\t<li><a href=\"http:\/\/nivo.dev7studios.com\/pricing\/\" class=\"sample-button\" target=\"_blank\">Download<\/a><\/li>\r\n<\/ul>\r\n\r\nA slider with a variety of unique transition effects. For full specifications visit the official website http:\/\/nivo.dev7studios.com \r\n<p>&nbsp;<\/p>\r\n<h3>JavaScript<\/h3>\r\nWe should include jQuery framework and jquery.nivo.slider.pack.js by pointing src attribute in the script tag to those .js files.\r\n\r\n<pre class=\"brush:js\">\r\n&lt;script type=\"text\/javascript\" src=\"js\/jquery-1.4.4.min.js\" >&lt;\/script>\r\n&lt;script type=\"text\/javascript\" src=\"js\/jquery.nivo.slider.pack.js\">&lt;\/script>\r\n<\/pre>\r\n\r\nInitialization script we place in the <head> <\/head> section of the document\r\n\r\n<pre class=\"brush:js\">\r\n$(window).load(function() {\r\n         $('#slider').nivoSlider();     \r\n});\r\n<\/pre>\r\n\r\nYou can also define some additional parameters \r\n\r\n<pre class=\"brush:js\">\r\n        effect:'random', \/\/Specify sets like: 'fold,fade,sliceDown'\r\n        slices:15,\r\n        animSpeed:500,\r\n        pauseTime:3000,\r\n        startSlide:0, \/\/Set starting Slide (0 index)\r\n        directionNav:true, \/\/Next & Prev\r\n        directionNavHide:true, \/\/Only show on hover\r\n        controlNav:true, \/\/1,2,3...\r\n        controlNavThumbs:false, \/\/Use thumbnails for Control Nav\r\n        controlNavThumbsFromRel:false, \/\/Use image rel for thumbs\r\n        controlNavThumbsSearch: '.jpg', \/\/Replace this with...\r\n        controlNavThumbsReplace: '_thumb.jpg', \/\/...this in thumb Image src\r\n        keyboardNav:true, \/\/Use left & right arrows\r\n        pauseOnHover:true, \/\/Stop animation while hovering\r\n        manualAdvance:false, \/\/Force manual transitions\r\n        captionOpacity:0.8, \/\/Universal caption opacity\r\n        beforeChange: function(){},\r\n        afterChange: function(){},\r\n        slideshowEnd: function(){} \/\/Triggers after all slides have been shown\r\n<\/pre>\r\n  <p>&nbsp;<\/p>      \r\n<h3>HTML<\/h3>\r\n\r\nBelow you can see general HTML script representation. To add a caption to an image you simply need to add a title attribute to the image. To add an HTML Caption simply set the title attribute to the ID of a element that contains your caption (prefixed with a hash). Note that the HTML element that contains your caption must have the CSS class nivo-html-caption applied and must be outside of the slider div.\r\n\r\n<pre class=\"brush:html\">\r\n<div id=\"slider\">\r\n    &lt;img src=\"images\/slide1.jpg\" alt=\"\" \/>\r\n    &lt;a href=\"#\">&lt;img src=\"images\/slide2.jpg\" alt=\"\" title=\"#htmlcaption\" \/><\/a>\r\n    &lt;img src=\"images\/slide3.jpg\" alt=\"\" title=\"This is an example of a caption\" \/>\r\n    &lt;img src=\"images\/slide4.jpg\" alt=\"\" \/>\r\n<\/div>\r\n\r\n<div id=\"htmlcaption\" class=\"nivo-html-caption\">\r\n    <strong>This<\/strong> is an example of a <em>HTML<\/em> caption with <a href=\"#\">a link<\/a>.\r\n<\/div>\r\n\r\n<\/pre>\r\n<p>&nbsp;<\/p>\r\n<h3>CSS<\/h3>\r\n\r\n<pre class=\"brush:css\">\r\n\/* The Nivo Slider styles *\/\r\n.nivoSlider {\r\n\tposition:relative;\r\n}\r\n.nivoSlider img {\r\n\tposition:absolute;\r\n\ttop:0px;\r\n\tleft:0px;\r\n}\r\n\/* If an image is wrapped in a link *\/\r\n.nivoSlider a.nivo-imageLink {\r\n\tposition:absolute;\r\n\ttop:0px;\r\n\tleft:0px;\r\n\twidth:100%;\r\n\theight:100%;\r\n\tborder:0;\r\n\tpadding:0;\r\n\tmargin:0;\r\n\tz-index:60;\r\n\tdisplay:none;\r\n}\r\n\/* The slices in the Slider *\/\r\n.nivo-slice {\r\n\tdisplay:block;\r\n\tposition:absolute;\r\n\tz-index:50;\r\n\theight:100%;\r\n}\r\n\/* Caption styles *\/\r\n.nivo-caption {\r\n\tposition:absolute;\r\n\tleft:0px;\r\n\tbottom:0px;\r\n\tbackground:#000;\r\n\tcolor:#fff;\r\n\topacity:0.8; \/* Overridden by captionOpacity setting *\/\r\n\twidth:100%;\r\n\tz-index:89;\r\n}\r\n.nivo-caption p {\r\n\tpadding:5px;\r\n\tmargin:0;\r\n}\r\n.nivo-caption a {\r\n\tdisplay:inline !important;\r\n}\r\n.nivo-html-caption {\r\n    display:none;\r\n}\r\n\/* Direction nav styles (e.g. Next & Prev) *\/\r\n.nivo-directionNav a {\r\n\tposition:absolute;\r\n\ttop:45%;\r\n\tz-index:99;\r\n\tcursor:pointer;\r\n}\r\n.nivo-prevNav {\r\n\tleft:0px;\r\n}\r\n.nivo-nextNav {\r\n\tright:0px;\r\n}\r\n\/* Control nav styles (e.g. 1,2,3...) *\/\r\n.nivo-controlNav a {\r\n\tposition:relative;\r\n\tz-index:99;\r\n\tcursor:pointer;\r\n}\r\n.nivo-controlNav a.active {\r\n\tfont-weight:bold;\r\n}\r\n<\/pre>","protected":false},"excerpt":{"rendered":"<p>Live Demo Download A slider with a variety of unique transition effects. For full specifications visit the official website http:\/\/nivo.dev7studios.com &nbsp; JavaScript We should include jQuery framework and jquery.nivo.slider.pack.js by pointing src attribute in the script tag to those .js files. &lt;script type=&#8221;text\/javascript&#8221; src=&#8221;js\/jquery-1.4.4.min.js&#8221; >&lt;\/script> &lt;script type=&#8221;text\/javascript&#8221; src=&#8221;js\/jquery.nivo.slider.pack.js&#8221;>&lt;\/script> Initialization script we place in the section [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[262,270],"tags":[813,832,816],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/6715"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=6715"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/6715\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=6715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=6715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=6715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}