Results 1 to 3 of 3

Thread: Modify ticker buttons. Please help.

  1. #1
    Join Date
    Jun 2007
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Modify ticker buttons. Please help.

    I am using the "Featured Content" ticker. The code can be viewed here

    http://www.dynamicdrive.com/dynamici...tentslider.htm

    My test page:
    www.thesallyconnection.com
    (latest news section, bottom right)

    How can I modify the buttons on this ticker to show only Prev and Next, instead of the 1 2 3 next buttons as currently displayed.

    Also, is it possible to add a pause on mouseover effect?

    I have tried for too long to get this right, but my javascript knowledge is not good enough!

    TIA

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

    Default

    You can easily hide the pagination links, by finding the line:

    Code:
    pcontent+='<a href="#" onClick=\"ContentSlider.turnpage(\''+sliderid+'\', '+i+'); return false\">'+(slider.paginateText? slider.paginateText[i] : i+1)+'</a> '
    and changing it to:

    Code:
    pcontent+='<a href="#" style="display:none" onClick=\"ContentSlider.turnpage(\''+sliderid+'\', '+i+'); return false\">'+(slider.paginateText? slider.paginateText[i] : i+1)+'</a> '
    Adding a "prev" button is a lot more tricky though. If I have time I'll revisit this thread with some code.

  3. #3
    Join Date
    Jun 2007
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for this.

    I also realised that if you click on one of the numbers, it pauses that item. Perhaps it's possible to use this as a basis for mouseover pause too?

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
  •