I'm trying to implement nivoslider on my magento installation. I just copy paste what's in the downloaded demo package (which I've tested out on my firefox and run very smooth) to the magento. I did all the homework
- copy all the required js and css files to my theme's skin folder
add those files on page.xml
<reference name="head"> <action method="addCss"><stylesheet>css/styles.css</stylesheet></action> ... <action method="addCss"><stylesheet>css/nivo-slider.css</stylesheet></action> <action method="addCss"><stylesheet>css/themes/default/default.css</stylesheet></action> <action method="addCss"><stylesheet>css/themes/default/pascal.css</stylesheet></action> <action method="addCss"><stylesheet>css/themes/default/orman.css</stylesheet></action> <action method="addItem"><type>skin_js</type><name>js/jquery-1.6.2-no-conflict.js</name><params/></action> ... <action method="addItem"><type>skin_js</type><name>js/jquery.nivo.slider.pack.js</name><params/></action> <action method="addItem"><type>skin_js</type><name>js/my_own_custom_script.js</name><params/></action> ... </reference>
copy the slider html section on magento cms page
- and finally add
jQuery(document).ready(function($) { $('#slider').nivoSlider(); });
to my_own-custom_script.js
It runs, but not smoothly. Sometimes the slide just paused for a while. The other times, one of the image slide won't showed up. The animation is also a little bit flickering. The slider navigation (the prev-next button and those circle on the bottom of the slider) sometimes get unresponsive on my click event. What makes me confused is, all those symptoms just happen sometimes, some other time it runs well.
oh, one more thing, this nivoslider also always make my firefox crash everytime I inspect one of its element with firebug.
Could anyone give me some clue, why is this happening? I suspect this has something to do with the conflict with magento's Prototype script (although it all already runs in noconflict mode)