Closed Thread Icon

Preserved Topic: quick question Pages that link to <a href="https://ozoneasylum.com/backlink?for=17996" title="Pages that link to Preserved Topic: quick question" rel="nofollow" >Preserved Topic: quick question\

 
Author Thread
Wyvern
Nervous Wreck (II) Inmate

From: aussie land
Insane since: Jun 2001

posted posted 06-30-2001 12:03

could someone please tell me in straight plain english what these two lines of javascript mean? i know roughly what they do, but i need to comment them as to what the actual little individual cody bits mean if you know what i mean.....uh yea. here you go:

var dyn = (document.layers &#0124; &#0124; document.all) ? true : alert(msg);
var iex = (document.all) ? true : false;

thanx muchly in advance.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 06-30-2001 12:30

/*
sets "dyn" variable to true if visitor is running Netscape Navigator 4 (not 6) and MSIE 4+, otherwise it alerts visitor with text that's stored in "msg" variable
*/
var dyn = (document.layers &#124;&#124; document.all) ? true : alert(msg);
/*
sets "iex" variable to true if visitor is running MSIE 4+, otherwise it's set to false
*/
var iex = (document.all) ? true : false;

Enjoy!



[This message has been edited by mr.maX (edited 06-30-2001).]

Wyvern
Nervous Wreck (II) Inmate

From: aussie land
Insane since: Jun 2001

posted posted 07-01-2001 02:55

^_^ thanx a lot man.

« BackwardsOnwards »

Show Forum Drop Down Menu