Results 1 to 2 of 2

Thread: Featured Content Glider - table problem

  1. #1
    Join Date
    Jul 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Featured Content Glider - table problem

    1) Script Title: Featured Content Glider

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tentglider.htm

    3) Describe problem:
    Whenever I wrap my toc (table of content) links in a table they stop working. for example:

    Works fine:
    <a href="#" class="toc">Slider Frame 1</a><BR>
    <a href="#" class="toc">Slider Frame 2</a><BR>

    Stops working:
    <table><tr><td>
    <a href="#" class="toc">Slider Frame 1</a><BR>
    <a href="#" class="toc">Slider Frame 2</a><BR>
    </td></tr></table>

    Any idea?
    kenw232@yahoo.com

  2. #2
    Join Date
    Aug 2004
    Posts
    9,902
    Thanks
    3
    Thanked 967 Times in 955 Posts
    Blog Entries
    15

    Default

    I guess a TABLE contained inside a DIV isn't considered a child element of the DIV with jQuery. Try replacing the line:

    Code:
    config.$toc=config.$togglerdiv.children('.toc')
    inside the script with just:

    Code:
    config.$toc=$(".toc")
    to make things more inclusive.
    DD Admin

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
  •