paleseptember
02-02-2007, 05:17 PM
1) Script Title: AnyLink Drop Down Menu
2) Script URL (on DD): http://dynamicdrive.com/dynamicindex1/dropmenuindex.htm
3) Describe problem:
I'm a scripting newbie, and I've been able to get the other ones to work, but I can't figure this one out for the life of me, and I get errors saying 'menu1' is not defined.
I'm determined to have a drop down menu with image rollovers as menu items. I looked everywhere for a script that does both of these things, but to no avail. I made the mouseovers in Imageready and it's my first time using the code from there.
Here is sample code in the head of the document that is supposed to make the menu items be rollovers:
var menu1=new Array()
menu1[0]='<a href="new.html" ONMOUSEOVER="changeImages('new', 'images/new-over.gif'); return true;"
ONMOUSEOUT="changeImages('new', 'images/new.gif'); return true;">
<IMG NAME="new" SRC="images/new.gif" WIDTH=93 HEIGHT=18 BORDER=0 /></A>
<IMG SRC="images/groups_02.gif" WIDTH=57 HEIGHT=18 />'
And here is the code for the link that when moused over, should produce the menu:
<TD><A HREF="shop.html" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '220px')" onMouseout="delayhidemenu()">
<IMG NAME="shop" SRC="images/shop.gif" WIDTH="43" HEIGHT="15" BORDER="0"></A></TD>
I know this is probably too complicated to diagnose, but might anyone be able to tell me if I'm missing something glaringly obvious?
2) Script URL (on DD): http://dynamicdrive.com/dynamicindex1/dropmenuindex.htm
3) Describe problem:
I'm a scripting newbie, and I've been able to get the other ones to work, but I can't figure this one out for the life of me, and I get errors saying 'menu1' is not defined.
I'm determined to have a drop down menu with image rollovers as menu items. I looked everywhere for a script that does both of these things, but to no avail. I made the mouseovers in Imageready and it's my first time using the code from there.
Here is sample code in the head of the document that is supposed to make the menu items be rollovers:
var menu1=new Array()
menu1[0]='<a href="new.html" ONMOUSEOVER="changeImages('new', 'images/new-over.gif'); return true;"
ONMOUSEOUT="changeImages('new', 'images/new.gif'); return true;">
<IMG NAME="new" SRC="images/new.gif" WIDTH=93 HEIGHT=18 BORDER=0 /></A>
<IMG SRC="images/groups_02.gif" WIDTH=57 HEIGHT=18 />'
And here is the code for the link that when moused over, should produce the menu:
<TD><A HREF="shop.html" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, '220px')" onMouseout="delayhidemenu()">
<IMG NAME="shop" SRC="images/shop.gif" WIDTH="43" HEIGHT="15" BORDER="0"></A></TD>
I know this is probably too complicated to diagnose, but might anyone be able to tell me if I'm missing something glaringly obvious?