Is it possible for me to make a border appear on a image (with a link) on mouse over, and disappear again when the mouse cursor moves out?
cheers
simon
Printable View
Is it possible for me to make a border appear on a image (with a link) on mouse over, and disappear again when the mouse cursor moves out?
cheers
simon
..Ive had a try and come up with this...
<SCRIPT>
function LogoIn{
logo.border=1;
}
function LogoOut{
logo.border=0;
}
</SCRIPT>
<CENTER>
<A href='index.asp' onMouseOver='LogoIn()' onMouseOut='LogoOut()'>
<IMG src='images/test/logo-large.gif' id='logo' border=0>
</A>
</CENTER>
...but, I get a object expected error on line 17 (which is bold) :confused:
<HTML>
<HEAD>
<SCRIPT>
function LogoIn(){
logo.border=1;
}
function LogoOut(){
logo.border=0;
}
</SCRIPT>
</head>
<body>
<CENTER>
<A href='index.asp' onMouseOver='LogoIn()' onMouseOut='LogoOut()'>
<IMG src='images/test/logo-large.gif' id='logo' border=0>
</A>
</CENTER>
</BODY>
</HTML>