PDA

View Full Version : Featured Content Slider v2.0



ff123
06-06-2008, 03:36 AM
1) Script Title: Featured Content Slider v2.0

2) Script URL (on DD): http://dynamicdrive.com/dynamicindex17/featuredcontentslider.htm

3) Describe problem: is there anyway to hyperlink the tabs to other pages aswell?

ddadmin
06-06-2008, 08:42 AM
Well, one way to do this is to change the default behavior of the nav buttons (aka "tabs") so they reveal a slide onMouseover instead of the default onClick. That way, you can then specify legitimate URLs inside each button that go to the target page when clicked on. To do this, inside the .js file, change the "onclick" keyword in the below code to "onmouseover" instead:


pdivlinks[i].setAttribute("rel", ++toclinkscount) //store page number inside toc link
pdivlinks[i].onmouseover=function(){
featuredcontentslider.turnpage(setting, this.getAttribute("rel"))
return false
}

This now leaves the task of specifying a URL for each nav button. The way to do it without making any more changes to the script is to change the pagination display mode to "markup", so you manually define the pagination links' HTML on the page:



featuredcontentslider.init({
id: "slider2", //id of main slider DIV
contentsource: ["inline", ""], //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
toc: "markup", //Valid values: "#increment", "markup", ["label1", "label2", etc]
"

See the "mark up" section in the documentation: http://dynamicdrive.com/dynamicindex17/contentslider_suppliment.htm

ff123
06-06-2008, 02:50 PM
I forget to mention Im using old version featured content..

ddadmin
06-06-2008, 09:06 PM
There are a few threads on how to modify the old version of Featured Content Slider so the nav buttons change slides onMouseover. Please do a search. One such thread is this one: http://www.dynamicdrive.com/forums/showthread.php?t=31056

ff123
06-07-2008, 01:11 AM
by using this js as you mentioned in that post.. everything turned blank..

ff123
06-09-2008, 09:31 PM
help?

ddadmin
06-10-2008, 05:35 PM
Hmm try the instructions on this thread instead: http://www.dynamicdrive.com/forums/showthread.php?t=26816