Closed Thread Icon

Topic awaiting preservation: Read CSS with Javascript? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8848" title="Pages that link to Topic awaiting preservation: Read CSS with Javascript? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Read CSS with Javascript? <span class="small">(Page 1 of 1)</span>\

 
smonkey
Paranoid (IV) Inmate

From: Northumberland, England
Insane since: Apr 2003

posted posted 09-04-2003 23:14

is there anyway to obtain the contents of a loaded stylesheet using javascript? If there is would it be possible to detect .myClass:hover as a seperate 'entity' to .myClass?

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 09-05-2003 00:51

There is, but IE doesn't support the standard way of doing it.

Look into "document.styleSheets". Try Google, and make use of my "display properties of object" favelet ( http://www.slimeland.com/favelets/ ).

« BackwardsOnwards »

Show Forum Drop Down Menu