[thelist] css not applying to elements created by JS in IE

Matt Warden mwarden at gmail.com
Tue Mar 29 14:18:26 CST 2005


Christian,

On Tue, 29 Mar 2005 21:51:18 +0100, Christian Heilmann
<lists at onlinetools.org> wrote:
> IE needs the generated link to have an href to display it as a link
> 
> a.href="#" does the trick
...
> You cannot set the attribute "style",   as that is also a variable of
> the element
> 
> interestList.parentNode.style.background='#ccc';
> interestList.parentNode.style.background='#fff';
> 
> does the  trick there. However, it is much cleaner to use classes for that:
> 
> http://www.onlinetools.org/articles/unobtrusivejavascript/cssjsseparation.html

These fixed the problem. Thanks a million for your quick help (once again)!

-- 
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.


More information about the thelist mailing list