/    Sign up×
Community /Pin to ProfileBookmark

Browser Compatability

Hi,

I’ve writen a page that uses javascript to show and hide divs for a nav bar.

It works fine in IE6 and Opera, but doesn’t work in NS6 or Mozilla.

I’m calling the 2nd of these 2 standard Macromedia functions.

Does anybody know why this won’t work?

The page can be found at [URL=http://www.colnespring.com/Test/default3.asp]Test site[/URL]

Regards Mimorkeris

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@FangJan 31.2005 — Here's a quick fix:
function hideAll(){
for (var i=1; i<= numofitems; i++) {
if(what == "moz") {document.getElementById("subglobal"+i).style.visibility="hidden";}
else {
var shutdiv =eval("subglobal"+i);
shutdiv.style.visibility="hidden";
}
}
}
Copy linkTweet thisAlerts:
@MimorkerisauthorJan 31.2005 — Thanks Fang, did the job, now all I've got to do is glue my hair back on ....
×

Success!

Help @Mimorkeris spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...