Rat
Not bored. Never bored.,
I should know this, but it's driving me up the wall. I have several div enclosed blocks of text. Some of them have a class of win2k, and some have a class of winxp.
I want a script which will detect the OS and display only those relevant to the OS. This will be in an environment where only win2k and winxp are present.
Obviously the first step is to quiz the navigator.appVersion object, and I think I've about got that with
if (navigator.appVersion.indexOf("NT 5.0") > -1)
for Win2k, and similar for XP.
My question, then. How do I alter the display property of several objects based upon their class? I can do it by id, but I don't know how to address the class. I assume that it's document.all.somethingorother. But I can't think what.
Any ideas.
Cheers very much,
Rat.
I want a script which will detect the OS and display only those relevant to the OS. This will be in an environment where only win2k and winxp are present.
Obviously the first step is to quiz the navigator.appVersion object, and I think I've about got that with
if (navigator.appVersion.indexOf("NT 5.0") > -1)
for Win2k, and similar for XP.
My question, then. How do I alter the display property of several objects based upon their class? I can do it by id, but I don't know how to address the class. I assume that it's document.all.somethingorother. But I can't think what.
Any ideas.
Cheers very much,
Rat.