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

help!

0 views
Skip to first unread message

Judah

unread,
Aug 17, 1998, 3:00:00 AM8/17/98
to
Does any one know if you can switch classes?

<a href="" class=blue onclick="class=red">This is a link</a>

The idea is not to do a mouse over or whatever but to change the class or
id. I'm beginning to think it's impossible.

Another question: How do you reference the anchor objects? Let's say to turn
them all to green on a mouseover.

Rick Jesse

unread,
Aug 23, 1998, 3:00:00 AM8/23/98
to
Use the className property, e.g., onclick="this.className=red".

--
Rick Jesse (v-r...@microsoft.com)
DHTML Editing Component Development Team
Microsoft Corp.

Judah <*v...@5thseason.net> wrote in message
<#wDyZphy...@uppssnewspub05.moswest.msn.net>...

0 new messages