PDA

View Full Version : Featured Content Glider - table problem



kenw232
08-08-2008, 08:43 PM
1) Script Title: Featured Content Glider

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/featuredcontentglider.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

ddadmin
08-09-2008, 06:56 AM
I guess a TABLE contained inside a DIV isn't considered a child element of the DIV with jQuery. Try replacing the line:


config.$toc=config.$togglerdiv.children('.toc')

inside the script with just:


config.$toc=$(".toc")

to make things more inclusive.