<a href="#"
onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Home','','Images/menuButtons/home_out.png',1)"
onclick="alert("Hello")" ><img onclick="alert("Hello")"
src="Images/menuButtons/home_on.png"
alt="Home" name="Home" width="164" height="64" border="0" id="Home" />
</a><br/>
I'm trying to create a navigation menubar with rollover images. Rollover Image part was created by Dreamweaver hence all those MM_functions
. But onclick
, I want to change the content of main frame, not just open a hyperlink.
So I tried onclick="JS_funtion()"
aswell as onMouseDown
and onMouseUP
. Nothing seemed to work. It's not even calling the functions as the example shows, I tried to call alert()
and still not working. I'm new to HTML/Javascript.
What am I doing wrong?
My site is www.sitebloviate.com