Featured Content Slider
http://www.dynamicdrive.com/dynamici...tentslider.htm
When set to automated, the slider automatically rotates the contents until the user explicitly clicks on one of the pagination links. With a simple modification of the contentslider.js file, the script will also stop whenever the user clicks inside the content itself.
Find
Add afterCode:paginatediv.onclick=function(){ //cancel auto run sequence (if defined) when user clicks on pagination DIV if (typeof window[sliderid+"timer"]!="undefined") clearTimeout(window[sliderid+"timer"]) }
Or feel free to take it a step further and place the whole thing in it's own function and then just call it under both circumstances...Code:slider.onclick=function(){ //cancel auto run sequence (if defined) when user clicks on slider DIV if (typeof window[sliderid+"timer"]!="undefined") clearTimeout(window[sliderid+"timer"]) }



Reply With Quote
Bookmarks