css and javascript

Giganews Newsgroups
Subject: css and javascript
Posted by:  Mariano_L√≥pez
Date: Thu, 17 Jul 2003

Hi. How can I make the following code (for Internet Explorer) work fine =
on Netscape 6 and Opera?

document.createStyleSheet();=20

with (document.styleSheets(document.styleSheets.length-1)) {=20
  addRule("A.newslink","text-decoration:"+FDRlnkDec+";color:"+ =
FDRlnkCol);=20
  addRule("A.newslink:hover","color:"+ FDRhovCol);=20
}=20
=20

Thanks.

Replies