|
-
Aug 22nd, 2001, 06:25 AM
#1
highlight border
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
-
Aug 22nd, 2001, 07:34 AM
#2
..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)
-
Aug 22nd, 2001, 09:06 AM
#3
Lively Member
<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>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|