[thelist] Javascript

Richard Bennett richard.bennett at skynet.be
Fri Aug 10 13:38:40 CDT 2001


Hi, I did it like this:

var c=getElementById('yourLinkId')

c.className='outset'
or
c.className='highlight'

see this example (with different syntax as it's DynAPI)
http://www.your-site.com/~rinfo/examples/Richard_Examples/setcssclass.html

This won't work with NS4, and Mozilla/NS6 show borders "wrong".

Richard.



----- Original Message -----
From: "Peter" <peter at vardus.com>
To: <thelist at lists.evolt.org>
Sent: 10 August, 2001 18:16
Subject: [thelist] Javascript


> Hi all,
> I need some Javascript help. Say I have 10 links. And I have two extra
> links with onclick handlers. I want to assign stylesheet .a to 6 of these
> links when I click on the first extra link, and I want to assign
stylesheet
> .b to 5 of those links when I click on the second one.
> How would I go about writing the javascript for this. My Javascript is
> pretty bad, I had a look at soe sites for examples of how to assign
> stylesheets with javascript but couldn't find anything..
> Thanks for any links or help!!!!
> Peter
>
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !
>





More information about the thelist mailing list