PDA

View Full Version : Featured Content Slider



ff123
04-27-2008, 07:11 PM
hi..
http://www.dynamicdrive.com/dynamicindex17/featuredcontentslider.htm
how can i make Auto slide work for everytime like if someone click pagination link.. Auto thing still works.. is it possible.?

ff123
04-27-2008, 11:09 PM
Anyone Care to help? and can i put any image instead of 1 2 3 in pagination?

ddadmin
04-28-2008, 06:59 AM
For 1), try removing the below code inside the .js file:


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"])
}

For 2), simply pass in the desired image tags into the 3rd parameter of the script when initializing the script, for example:


var linktext=["<img src='1.gif' />", "<img src='2.gif' />", "<img src='3.gif' />", "<img src='4.gif' />"] //custom pagination links text array
ContentSlider("slider1", 3000, linktext) //Auto rotate slider plus custom pagination links text

ff123
04-28-2008, 12:25 PM
thanks but how to remove borders from these images..?

ff123
04-28-2008, 12:45 PM
and how can i remove NEXT from pagination

ddadmin
04-28-2008, 06:49 PM
To remove the border for the pagination images, just specify that when you pass in the HTML codes, for example:


<img src='1.gif' border="0" />


and how can i remove NEXT from pagination

Find the line below, and add to it the code in red:


pcontent+='<a href="#" style="display:none; font-weight: bold;" onClick=\"ContentSlider.turnpage(\''+sliderid+'\', parseInt(this.getAttribute(\'rel\'))); return false\">'+(slider.nextText || "Next")+'</a>'

ff123
04-28-2008, 09:47 PM
thank alot...