krot
-
Posts
2 -
Joined
-
Last visited
Never
Posts posted by krot
-
-
Hi:
I want to have menu buttons that use onousedown and onmouseout, without the gif files showing the menu word. I want to add the word dynamically, through text somewhere. When I try this through href, the word appears on the right of the menu gif file (the word 'Clinic' in this example). How do I get the menu name on top of the gif file and still get onmouseout and onmousedown working? I don't want to add the name to the graphic. Much obliged for any thoughts on the issue.
Here's the code:
<body>
<script language="javascript">
<!--
function hiLite(imgDocID,imgObjName) {
document.images[imgDocID].src = imgObjName;
}
function hiLiteOff(imgDocID,imgObjName) {
document.images[imgDocID].src = imgObjName;
}
-->
</SCRIPT>
<A href="/test_home.html" onmousedown="hiLite('b2','/buttons/ButOnBeigeBlank.gif')" onmouseout="hiLiteOff('b2','/lifesalad/nbaascc/buttons/beige/ButOffBeigeBlank.gif')">
<IMG src="/buttons/ButOffBeigeBlank.gif" name="b2" width="88" height="17" border="0" alt="Clinic">Clinic</A>
</body>
Menu JavaScript/HTML issue
in Javascript Help
Posted
instead on using the image, use a background, than change the background in the javascript.
[/quote]
Thanks! Done!