Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with error in this script

Status
Not open for further replies.

Mrbaseball34

Programmer
Apr 17, 2002
24
US
<html>
<title>
Junk
</title>
<head>
<script language=VBscript>
function vbMouseOver2(a)
a.style.backgroundcolor = &quot;#e6e6e6&quot;
end function

function vbMouseOut2(a)
a.style.backgroundcolor = &quot;#f8f8f8&quot;
end function
</script>
</head>
<body>
<table border=0 align=center width=&quot;560&quot; cellpadding=1 cellspacing=1>
<tr id=&quot;tr100&quot;
OnMouseOver=&quot;vbMouseOver2(tr100)&quot;
OnMouseOut=&quot;vbMouseOut2(tr100)&quot;>
<td bgcolor=&quot;FF00EE&quot;>Just a stupid thing</td>
</tr>
</table>
</body>
</html>

I keep getting object expected errors on the OnMouseOver and OnMouseOut calls in the TR...

Can anyone help?
 
the line:
<td bgcolor=&quot;FF00EE&quot;>Just a stupid thing</td>

is your problem, just remove the bgcolor. I tested in IE5.5 and it worked once I removed this
jared@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top