The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

HTML/JavaScript question... by kahuana2003-03-18 20:40:24
  Styles are the best way. by Khaar 2003-03-18 21:49:49
That would be lbl.style.color = ...

If I remember right, Mozilla doesn't use document.all.someID, but only document.getElementById.someID and in IE it works since version 5. So that piece of code would be like:
var lbl = (document.getElementById)? eval('document.getElementById.lbl' + elem) : eval('document.all.lbl' + elem);

I hope this helps.
[ Reply ]
    Thanks a bunch! by kahuana2003-03-18 22:38:42
    Oh, and TVM! by kahuana2003-03-18 22:39:17

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)