Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

simple onMouseOver does not work

0 views
Skip to first unread message

Barton

unread,
Jan 22, 2002, 12:36:18 PM1/22/02
to
Why the hell does this work:

<div class=box>test</div>


But not this?

<div onMouseOver="this.className:'box';">Test</div>


<STYLE TYPE="text/css">
<!--
.box
{
border-style: solid;
border-color: red;
border-width: 1px;
}
-->
</STYLE>

Rowland Shaw

unread,
Jan 23, 2002, 4:11:56 AM1/23/02
to
What about:
<div onMouseOver="this.className = 'box';">Test</div>


"Barton" <bc...@hotmail.com> wrote...


> Why the hell does this work:
>
> <div class=box>test</div>
>
>
> But not this?
>
> <div onMouseOver="this.className:'box';">Test</div>

[css sniped]


Me Myself and I

unread,
Jan 24, 2002, 10:53:08 AM1/24/02
to
You have to use = instead of :

>.
>

0 new messages