PDA

Click to See Complete Forum and Search --> : MouseOver and MouseOut function


eida_hanafiah
Aug 15th, 1999, 05:52 AM
Hi,
Can somebody help me out. I got this code from CNET about mouseover and mouseout but when I tried to put in my webpage it doesn't work?
Is there any restriction to the call of mouseover and mouseout function?

<SCRIPT language="vbscript">
Sub Link1_OnMouseOver()
Link1.style.color = "red"
End Sub
Sub Link1_OnMouseOut()
Link1.style.color = "blue"
End Sub
</SCRIPT>

<a href="" id="Link1">

Aug 15th, 1999, 12:28 PM
You need IE4/5 it won't work with netscape.

eida_hanafiah
Aug 15th, 1999, 03:08 PM
I am using IE5.0

eida_hanafiah
Aug 17th, 1999, 05:39 AM
Is this the same thing that I posted ealier? or is the better way to do?
And can somebody explain me all about it?<STYLE type=text/css>
.blfont {
COLOR: #99ccff
}
.redfont {
COLOR: #cc0033
}
.yllwfont {
font-family: Verdana, Arial;
font-size: 11px;
font-weight: bold;
COLOR: #FFFF33
}
.bluefont {
COLOR: #99CCFF
font-family: Verdana, Geneva, Lucida, Arial;
font-size: 11px;
}
.navbit {
font-family: Verdana, Geneva, Lucida, Arial;
font-size: 11px;
}
.whitefont {
COLOR: #ffffff
}
A:hover {
COLOR: #ff0000
}
A:link {
COLOR: #333399
}

Aug 17th, 1999, 02:17 PM
<SCRIPT language="vbscript">
Sub Link1_OnMouseOver()
Link1.style.color = "black"
End Sub
Sub Link1_OnMouseOut()
Link1.style.color = "blue"
End Sub
</SCRIPT>

<a href="" id="Link1">LINK</a>

works

but the style with the a.hover and a.link is a nicer/better way to do it, that way you'll support other browsers to and its more standard .

-Azzmodan

Compwiz
Oct 15th, 1999, 06:12 AM
<a href="http://www.e-bizinternet.com" onMouseOver="myFunction()" onMouseOut="myOtherFunction">e-biz internet</a>

------------------
Tom Young, 14 Year Old
tom@e-bizinternet.com
ICQ: 15743470
AIM: TomY10
PERL, JavaScript and VB Programmer