PDA

View Full Version : JS Dropdown menu not working


TruthElixirX
09-27-2005, 11:51 PM
I'm working on a hack. I was originally doing a direct port from the 3.0.x version but have since decided to do a complete re-write of it. I was creating a new template. The template is fully coded except the drop down menu won't work. I even tried using the drop down menu code from the old version of the hack but it doesn't work for some reason.

<table class="tborder" align="center">
<thead>
<tr>
<td class="thead" align="left" valign="top">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('stats')"><img id="collapseimg_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_stats].gif" alt="" border="0" /></a> $vbphrase[statistiques] : <i>$foruminfo[title]</i>
</td>
<td class="vbmenu_control"><font class="smallfont">
<span id="menuchat" class="vbmenu_control" style="float:$stylevar[center]">$vbphrase[stats_autres]
<script type="text/javascript"> vbmenu_register("menuchat"); </script>
</span>
</td>
</tr>
</thead>

<tbody id="collapseobj_stats" style="$vbcollapse[collapseobj_stats]">
<tr>
<td class="thead" align="right" valign="top">
$vbphrase[stats_sujets]: <b>$forum[threadcount]</b>
</td>
<td class="thead" align="left" valign="top">
$vbphrase[stats_reponses] : <b>$forum[posts]</b>
</td>
</tr>

<tr>
<td class="thead">
$vbphrase[stats_vues] : <b>$nb_vues</b>
</td>
<td class="thead">
$vbphrase[stats_votes] : $moyenne[votes]
</td>
</tr>
<tr>
<td class="thead">
$vbphrase[stats_dsujet] : <b>$sujets[postusername]</b>
</td>
<td class="thead">
$vbphrase[stats_sujets] locked : <b>$sujet[ferme]</b>
</td>
</tr>
<tr>
<td class="thead">
$vbphrase[stats_mposteur] : <b>$meilleur[username] ($meilleur[postcount])</b>
</td>
<td class="thead">
$vbphrase[stats_total_posts] : <b>$forum[replycount]</b>
</td>
</tr>
<tr>
<td class="thead">
$vbphrase[stats_dposteur] : <b>$forum[lastposter]</b>
</td>
<td class="thead">
$vbphrase[stats_dsujet] : <b>$forum[lastthread]</b>
</td>
</tr>
</table>


The JS dropdown menu is foudn here:

<td class="vbmenu_control"><font class="smallfont">
<span id="menuchat" class="vbmenu_control" style="float:$stylevar[center]">$vbphrase[stats_autres]
<script type="text/javascript"> vbmenu_register("menuchat"); </script>
</span>
</td>

I'm guessing a variable has changed in 3.5 or soemthing..so..forgive me..>.<