![]() | |
#1
| |||
| |||
|
|
script type="text/javascript" var adBtype = "??"; function wB() { if (document.getElementById && !document.all) { adBtype = "NS6+"; } else if (document.getElementById && document.all) { adBtype = "IE5+"; } else if (document.all) { adBtype = "IE4"; } else if (document.layers) { adBtype = "NS4"; } alert(adBtype); } /script |
#2
| |||
| |||
|
|
McKirahan wrote: script type="text/javascript" var adBtype = "??"; function wB() { if (document.getElementById && !document.all) { adBtype = "NS6+"; } else if (document.getElementById && document.all) { adBtype = "IE5+"; } else if (document.all) { adBtype = "IE4"; } else if (document.layers) { adBtype = "NS4"; } alert(adBtype); } /script There's no escape for the function: function wB() { if (document.getElementById && !document.all) { adBtype = "NS6+";return; } if (document.getElementById && document.all) { adBtype = "IE5+";return; } if (document.all) { adBtype = "IE4";return; } if (document.layers) { adBtype = "NS4";return; } adBtype= "unknown to this programmer"; } Mick |
#3
| |||
| |||
|
|
Actually I modified one I found; it actually was: function wB() { if (document.getElementById && !document.all) { adBtype = "NS6+"; return; } else if (document.getElementById && document.all) { adBtype = "IE5+"; return; } else if (document.all) { adBtype = "IE4"; return; } else if (document.layers) { adBtype = "NS4"; return; } } |
![]() |
| Thread Tools | |
| Display Modes | |
| |