/    Sign up×
Community /Pin to ProfileBookmark

Why can’t netscape read it?

I’m using [url]http://javascript.internet.com/navigation/category-menus.html[/url] on my site right now and I’m wondering why netscape users can’t use the menu. Is there a way to fix it so they can access it?

to post a comment
JavaScript

8 Comments(s)

Copy linkTweet thisAlerts:
@CharlesAug 03.2004 — There are more users of MSIE who disable scripting than there are users of Netscape. Never make a JavaScript dependant site. Then you don't have to wory about it.
Copy linkTweet thisAlerts:
@gil_davisAug 03.2004 — You must be referring to NS 6 and above, because it has code to make NS 4 work already.

NS 6+, Mozilla and FireFox do not have document.layers and also do not have document.all, and that is what the menu tests for. It is an old menu script and it may be easier for you to get a modern script for DOM-compliant browsers instead of using one designed for the proprietary DOM in IE and NS 4.

You would have to change all the document.all references to document.getElementById and then fix things like innerText and pixelTop that are IE-only.
Copy linkTweet thisAlerts:
@ariesrisingauthorAug 03.2004 — What would the innerText and pixelTop tags be changed to?

I am really javascript illiterate (hence me using a premade script lol). I wasn't aware NS 6 couldn't read it until someone emailed me about it the other day.

I really like the way the script works and how it looks, I just want it to work for everyone...so if someone could help fix it up I'd appreciate it.

My site where the code is (I modified it a little)is at http://mypage.direct.ca/c/csamson/leftmenu.html
Copy linkTweet thisAlerts:
@PittimannAug 04.2004 — Hi!

If you like, have a look at this: http://www.pit-r.de/menus/Ariesrising_cat_menu.htm

In addition to browsers using document.all or document.layers, the modifications in the javascript make the menu work in all browsers "understanding" document.getElementById as well.

That does NOT mean, that it works in EVERY browser and of course it wouldn't work in browsers with JS DISABLED OR NOT AVAILABLE. Due to that, I would advise you to use the link, you currently have for Netscape users for those without js or with incompatible browsers.

Regards - Pit
Copy linkTweet thisAlerts:
@gil_davisAug 04.2004 — [i]Originally posted by ariesrising [/i]

[B]What would the innerText and pixelTop tags be changed to?[/b][/quote]
You could use innerHTML instead of innerText.

The pixelTop is tricky (and at the same time stupid IMHO). It seems that top is not a number - it is a string (like "20px"). So if you construct a string, you can use top instead and all browsers will be "happy".

[b]I am really javascript illiterate (hence me using a premade script lol).[/b][/quote]Menus are not for the illiterate. Even the most seasoned js veterans shy away from trying to modify someone else's menu code.
Copy linkTweet thisAlerts:
@ariesrisingauthorAug 04.2004 — Thanks for the help, I think I will try the code Pittiman posted as also keep up a link for people who can't access the menu.
Copy linkTweet thisAlerts:
@PittimannAug 04.2004 — Hi!I think I will try the code Pittiman posted as also keep up a link for people who can't access the menu.[/QUOTE]This combination seems to be a brilliant idea! ?

Regards - Pit

Edit: I forgot to mention that I can keep the link intact for a while; if you don't have NS6+/Mozilla installed, you can send the link to friends who have it and ask them for feedback without having to be afraid that you potentially mess up your code. The links would of course open in new windows due to the missing frames.
Copy linkTweet thisAlerts:
@ariesrisingauthorAug 04.2004 — I've saved the code you edited to a separate file so I can tweak it and stuff, thanks!
×

Success!

Help @ariesrising 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...