1) Script Title: AnyLink Drop Down Menu
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pmenuindex.htm
3) Describe problem:
Exactly as is this script works.
Instead of a Text link with an Anchor tag I would like to use a Cell in a table with mouseover, mouseout, and onclick events - this sounds easy enough to do but I am getting an error when I do that:
I left code in header exactly as described on page above... I linked using this code:
-----------------------------------------------------------------
<table border="0" width="100%" id="table1" bgcolor="#336666">
<tr><div id="menu1">
<td align="center" bgcolor="#F2EBE3" onmouseover="FP_callJS('dropdownmenu(this, event, menu1, \'150px\')')" onmouseout="FP_callJS('delayhidemenu()')" onclick="FP_callJS('return clickreturnvalue()')">
<b><font face="Arial Narrow" size="2">SAMPLE1</font></b></td></div>
<td align="center" bgcolor="#F2EBE3"><b>
<font size="2" face="Arial Narrow">SAMPLE LINK 2</font></b></td>
<td align="center" bgcolor="#F2EBE3"><b>
<font face="Arial Narrow" size="2">ONE MORE SAMPLE</font></b></td>
</tr>
</table>
-----------------------------------------------------------------
The error is an invalid object on this line of code:
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"



Reply With Quote

Bookmarks