Hi Everyone
How can you make a Rollover Button in VBScript that has four functions.
it should do OnMouseOver , OnMouseOut , OnClick and now is the part that i can't find out : once you click the button it should stay to that image untill you click an other button.
here i did the 3 fuctions can someone Please tell me how to do the OnClick stay to he image function?
Thank you in advance
<html>
<Script Language="VBScript">
Sub Over()
document.images(0).src="Home1.bmp"
End Sub
Sub Out()
document.images(0).src="Home.bmp"
End Sub
Sub BClick()
document.images(0).src="Home2.bmp"
End Sub
</Script>
<body bgcolor="#000000" text="#FFFFFF">
<img src="Home.bmp" OnMouseOver="Over()" OnMouseOut="Out()" OnClick="BClick()">
</body>
</html>
How can you make a Rollover Button in VBScript that has four functions.
it should do OnMouseOver , OnMouseOut , OnClick and now is the part that i can't find out : once you click the button it should stay to that image untill you click an other button.
here i did the 3 fuctions can someone Please tell me how to do the OnClick stay to he image function?
Thank you in advance
<html>
<Script Language="VBScript">
Sub Over()
document.images(0).src="Home1.bmp"
End Sub
Sub Out()
document.images(0).src="Home.bmp"
End Sub
Sub BClick()
document.images(0).src="Home2.bmp"
End Sub
</Script>
<body bgcolor="#000000" text="#FFFFFF">
<img src="Home.bmp" OnMouseOver="Over()" OnMouseOut="Out()" OnClick="BClick()">
</body>
</html>