Forum Moderators: open
Cheers
Googly
So I believe I found the same script at this site
[ksu.edu...]
the meat of the script you are looking for is a bit farther down.
Googly
function toggleVisibility(id, NNtype, IEtype, WC3type) {
if (document.getElementById) {
eval("document.getElementById(id).style.visibility = \"" + WC3type + "\"");
} else {
if (document.layers) {
document.layers[id].visibility = NNtype;
} else {
if (document.all) {
eval("document.all." + id + ".style.visibility = \"" + IEtype + "\"");
}
}
}
}
Cheers
Googly
var MacIsNotPresent = 1; //this variable should be global, so //your other javascript can find out if it should execute or //not
function setMacPresense(){
if (navigator.appVersion.indexOf('Mac')!= -1)
MacIsNotPresent=0; //or false
}
funtion JustAnExample(){
//then, you could prepend all your other scripts with:
if(MacIsNotPresent){
//****do all your Windows/Linux stuff***
}else{
//do all your Mac stuff (which is nothing, in this
//case)
}
}
<body onload="setMacPresense();">
i guess this should do it!