Click to See Complete Forum and Search --> : mouseover
warpedmonkey
02-03-2003, 09:53 AM
how do you have a mouse over that does 2 things or more.
example:
you have a button thats green and when you come across it with your mouse it lights up bright green and then it also says
home page at the top right hand corner or the page....
just curious
Zach Elfers
02-03-2003, 09:59 AM
Like this:
<script type="text/JavaScript">
<!--
function showCorner(id) {
if (document.getElementById) {
el = document.getElementById(id);
if (el.style.visibility = "hidden") {
el.style.visibility = "visible";
}
if (el.style.visibility = "visible") {
el.style.visibility = "hidden";
}
return true;
}
//-->
</script>
...
<input type="button" onMouseOver="this.style.background-color='lime';return showCorner('topright');" onMouseOut="this.style.background-color='green';return showCorner('topright');" style="background-color:green;">
...
<div id="topright" style="position:absolute;top:0px;right:0px;">
Top Right Corner
</div>