2011-03-25, 03:14 AM
So I'm starting to code my own javascript for my skins so I decided to make a small script to start out, it works perfectly except it only displays the forum info on the FIRST forum and none of the others, it will display the stats of all the other forums, but it will still be on the first forum/trow.
_________
Forum 1 (always displays text here on mouseover)
_________
Forum 2 (even if I hover over this forum, only changing the stats/text)
_________
Jscript:
HTML:
Any suggestions for the script to fix this? Or is a php conflict?
_________
Forum 1 (always displays text here on mouseover)
_________
Forum 2 (even if I hover over this forum, only changing the stats/text)
_________
Jscript:
function writeText(var)
{document.getElementById("forum_stats").innerHTML=var;}
HTML:
<td class="{$bgcolor}" valign="middle" onmouseover="writeText('({$posts}{$unapproved['unapproved_posts']} {$lang->forumbit_posts}, {$threads}{$unapproved['unapproved_threads']} {$lang->forumbit_threads})')" onmouseout="writeText('')"">
<span class="forum_title"><a href="{$forum_url}">{$forum['name']}</a></span>
<span id="forum_stats"></span>
Any suggestions for the script to fix this? Or is a php conflict?