Click to See Complete Forum and Search --> : Popup Menu in NavBar not working...


Moomancow
04-17-2003, 09:24 PM
Hello all,

I created a Navigation Bar for my site. I created it in FireworksMX and exported it to DreamweaverMX. But, I had to copy and past most of the HTML and Script code myself to get it to work. Anyway, it's working now, except for on part. I have one button that has a popout menu, however when I mouseOver the button, nothing happens. the href = #, and thats what shows up at the bottom of my browser window when I do mouseOver it. I've attached my source code in notepad format. Where I believe the error is I have this shown....
<!-- HERE IS THE PROBLEM I BELIEVE -->

Would you guys mind taking a look at that and my script to see if I can do anything to make the popup menu work?? Everything else works fine. Thanks.

- Moomancow

DrDaMour
04-17-2003, 09:33 PM
MM_showMenu function isn't defined in taht text, but i'm guessing it's in

<script language="JavaScript1.2" src="mm_menu.js"></script>

so i'd need to see that too, to debug this probably.

Moomancow
04-18-2003, 01:14 AM
Here is that file you asked for....Thanks, I appreciate your help alot.

- Moomancow

DrDaMour
04-18-2003, 02:01 AM
MM_showMenu(window.mm_menu_0330231604_0,115,120,null,'images/navBar1_r3_c2')

ok taht 115 is the X coordinate of the menu and that 120 is they y coordinate, so you have to play with those. you had them at 115,-17 so ti was showing off teh screen. I'm sure tehre's a way to make them relative, but i can't decipher it. Maybe someone else can. But seing as you only have one menu for now, that should be ok. just change teh 120 (your -17) and keep testing it until it looks to be int eh right spot.

Moomancow
04-18-2003, 10:08 AM
I tried altering those numbers...but to no avail. Nothing didnt popup still. When I load the .html file and open it in my browser, at the bottom, in the status bar window, where it usually says "Done" after loading a page....well mine says "Error on Page". I double click on it, and it says my error is on line 110, char 21 (and char 1, on the same line). It says my Error : Object expected. Code : 0. My line 110 reads as follows :

<td><a href="#" onMouseOut="MM_swapImgRestore();MM_startTimeout();" onMouseOver="MM_showMenu(window.mm_menu_0330231604_0,115,-17,null,'images/navBar1_r3_c2');MM_swapImage('navBar1_r3_c2','','images/navBar1_r3_c2_f2.gif',1);"><img name="navBar1_r3_c2" src="images/navBar1_r3_c2.gif" width="115" height="30" border="0" alt=""></a></td>

I know I have the -17 still in there, but that doesnt matter...I can alter that number, but I still doesnt popup, and I still get the exact same error message as I did before, when it was -17. Any ideas??