javascript help needed, please

bagaki

Senior member
Jul 27, 2001
316
0
0
i know very little about javascript, but have a basic understanding of programming. Here is my problem, i cannot seem to get this mouse over to work right. if anyone would like to look at it and see what i am missing i would be very much grateful. i want to have it setup so that when you click on the "button" it looks like it is being pressed down (that part works), but i also want a different graphic displaying the destination to appear on the mouseover.

here is the menu

the pictures that are not loading are suppose to say the destination of the button
bagaki

EDIT: i seem to have fixed the rollover, but now the mouseclick doesnt work. i appreciate any help
 

diskop

Golden Member
Jul 14, 2001
1,262
0
0
At first glance your onmouseout isn't in there, so it's not showing the original image when the mouse is gone.

edit: in Opera
 

diskop

Golden Member
Jul 14, 2001
1,262
0
0
Also you table is too narrow in mozilla, so it displays it funny.

Also I'm not sure it's onmousedown, it should be onclick. But not 100% on this part.
 

Basilisk6

Member
Jan 25, 2001
137
0
76
Try this page

The javascript is much more simplified, but I think it still does what you're wanting it to do(though the onMouseOver event doesn't work in Opera, not sure why). I hope I'm not helping do homework for you.

As for your code, I honestly don't understand your changeImages fuction, but then again, it's 4 a.m. and I'm really tired, so I can't really tell you why it doesn't work.

Hope this helps.