View Full Version : switch content script problems!!!

11-20-2004, 03:56 AM
Here is the link where I am using this script:

Go to that link and it's supposed to work like this:
You click on the game on the left and the ladders come up underneath it.

Here is the php code where the problem is happening:

echo "<div id=\"sc1\" class=\"switchcontent\">";
while ($count != $laddercount) {
echo "<tr><td>$ladder[$count]</td></tr>";

echo "</div></table></td>";

I think it has something to do with the <tr><td>'s it echo's out inside the <div>....
Is this the problem, if so how can i fix this?
If not what else could be wrong?

11-22-2004, 11:48 PM
Hmmm it's hard to read your page's source due to how long it is, so I'll have to look at what you posted above for clues. It's very possible the <tr> and <td>s that are within each DIV is the culprit, since ideally you'll want to keep the HTML valid and straightforward within each DIV.

I'm not sure there is an easy fix for this, unfortunately. If you know enough about CSS, you can simulate table rows/columns using regular DIV tags, which should work within each master DIV.