Ranbir Kaur wrote:
Hi all,
http://www.gurmatps.org works fine in MSIE6, Opera7, NS7 (for windows)
Could someone do me the favor and check what may be wrong that it
doesn't display right in MAC browsers?
Thanks
Ranbir
You're kidding, right? Several hundred (thousand?) lines of HTML and
JavaScript, spread across 5 files?
Unless you are prepared to find roughly where the error is and trim your
code to a concise example of the issue, no one here is going to waste
hours debugging your code.
If it helps, your feature-based browser detection results in Safari
getting dom = 1 and ns6 = 1.
Given that the page does display briefly the first time, I'd concentrate
on this bit:
//Toggle Layer Visibility
function toggleVisibility(id, NNtype, IEtype, W3Ctype) {
if (document.getElementById) {
eval("document.getElementById(id).style.visibility = \"" + W3Ctype + "\"");
} else {
if (document.layers) {
document.layers[id].visibility = NNtype;
} else {
if (document.all) {
eval("document.all." + id + ".style.visibility = \"" + IEtype + "\"");
}
}
}
}
Have fun.