Results 1 to 7 of 7

Thread: Featured Content Slider v2.0

  1. #1
    Join Date
    Apr 2008
    Posts
    104
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Featured Content Slider v2.0

    1) Script Title: Featured Content Slider v2.0

    2) Script URL (on DD): http://dynamicdrive.com/dynamicindex...tentslider.htm

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

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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:

    Code:
    			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:


    Code:
    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/dynamicindex...suppliment.htm

  3. #3
    Join Date
    Apr 2008
    Posts
    104
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    I forget to mention Im using old version featured content..

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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/s...ad.php?t=31056

  5. #5
    Join Date
    Apr 2008
    Posts
    104
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    by using this js as you mentioned in that post.. everything turned blank..

  6. #6
    Join Date
    Apr 2008
    Posts
    104
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    help?

  7. #7
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hmm try the instructions on this thread instead: http://www.dynamicdrive.com/forums/s...ad.php?t=26816

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •