alternate menu

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

I am still working on a site that has a dhtml menu which my client insists on keeping. The menu does not show up in some versions of netscape. I was just wondering if there was any way that I could do a browser detect thing and have a regular html menu show up for browsers that do not read the dhtml? I thought about just doing a menu in html and let it hide behind the dhtml menu but it would show as the dhtml one loads and I do not think this would be the proper way to handle this problem. Do I have any other options???

Busy's picture

He has: 6,151 posts

Joined: May 2001

You can do a browser detect/direct with javascript, also check where you got the dhtml script for an update.

One down side thou, some people turn Javascript off for the purpose of not seeing those downdowns, floating watermarks, pop ups, flying graphics, changing text and background colors etc. If I'm out looking for something and nothing else, I surf with images and javascript off to speed things up.

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

busy, what is a downdown? hehehe

Quote: One down side thou, some people turn Javascript off for the purpose of not seeing those downdowns

I updated with his new version a while back. See the **Dreaded Menu** post for that subject. After I updated it didn't work in NS 4.7 but the old one did.

I am going to see if I can figure out how to do a "detect/direct with javascript". If you have any pointers on this I would be mucho appreciative. Do you think I will be able to plug in the regular html menu so that the new browsers won't be able to see it but the older ones will?

I am still rolling in the floor about your downdowns.:roll:

Busy's picture

He has: 6,151 posts

Joined: May 2001

downdowns, hmmm what was I thinking?
I think I meant dropdowns, but you never know these days Laughing out loud

If the two versions of scripts are the same but dont work on all, maybe the guys and gals here could tweek it abit for ya. Or email the menu designer and let them know it doesnt work in all browsers, they may not know and could fix it for you.

I only know enough Javascript to get by on, I usually use many of the cut and paste sites to get codes then try change them to suit my needs.

try this one http://a1javascripts.com/redirection_scripts/ use the Redirect on Browser Type, it works on netscape 4.7 and 6 as well as IE 5, you have to downlaod a zip file for the code. and change the redirect part to what works or what doesnt work with your dhtml menu.

mairving's picture

They have: 2,256 posts

Joined: Feb 2001

Quote: Originally posted by Busy
downdowns, hmmm what was I thinking?
I think I meant dropdowns, but you never know these days Laughing out loud

Darn, I thought that I had learned a new word.

Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

But if I used that wouldn't I have to make a seperate set of pages (or a whole other site) just for the older browser? Because the redirect script only points to another page. Am I correct on this?

I was wanting a script that would use the same pages that I have but show the html menu for older browsers and hide the html menu for newer ones.

Busy's picture

He has: 6,151 posts

Joined: May 2001

Quote: Darn, I thought that I had learned a new word.

Mairving, didnt you know english isnt my first language? typo is Laughing out loud

me fail english? umpossible

Your correct DM, I goofed, but you could still use that script, in plain english:

if your browser is this, use this menu
else if your browser is this, use the this other menu

you can just use an if/else statement to choose on browser detection keeping it to one page instead of two, you'll probably be better off to include the menus in .js files (seperate javascript files) and call them on the if/else
if they have javascript turned off thou they wont get any menu so maybe add a default or plain html menu in noscript tags

the joys of DHTML

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

:freak:

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi dm,

Quote: I am going to see if I can figure out how to do a "detect/direct with javascript".

if (document.layers)
location.href='nn4page.html'

re the menu itself: may I ask what specific error you got with nn4?

Vinny

Where the world once stood
the blades of grass cut me still

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

Oh, are you my angel in disguise?

I use Explorer so I don't know the specific error. I think that it just doesn't show up. Here is the link to the site in question if that helps.
ETTFire

You can view the threads where it was critiqued after I did the menu upgrade.
Dreaded menu thread

Here is the link the the guy that created the menu.
menu link

I believe that this one is going to take some thought to figure out so if you bum out on me that is no problem.:ezbill:

I know that all here wish that was no such thing as disaster master and dhtml....hehehe

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

Quote: Oh, are you my angel in disguise?

I don't think Vinny is an angel... otherwise he would be the first one with a sword in his avatar Laughing out loud

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

Opps! I didn't notice that. Well, I said, "in disquise".
Speaking of sword--what is the meaning of your sword Vinny? Is that for chopping code?

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

Hey Vinny,

I just had someone look at the ettfire.com site on netscape and the problem is the positioning. It is showing up, it is just in the wrong place. The menu is covering up the logo. Do you know anything about layers, absolute positioning and NS and how I might fix this?

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Morning people Laughing out loud

1)Jack, I must defer to: Archangel Michael vs the Lord of Light (aka Lucifer)
2)DM, sounds good to me Smiling
but it really has more to do with:
the blades of grass cut me still
a few lines (add appropriate crlfs Smiling
in a poem I wrote years ago.
3) I didn't download your site, so I don't know how you are displaying the menu.

Insofar as layers & absolute positioning:
yes, nn4 requires it;
yes, it's a pain;
yes, there are workarounds.

you can try embedding the layer/div within an ilayer -- nn4 will be the only browser to recognize the html, you will need to modify the accessing -- document.layers[ilayerID].document.layers[layerID].etc..
The ilayer can be positioned relatively and the layer absolutely (0,0) within it.

Vinny

Where the world once stood
the blades of grass cut me still

disaster-master's picture

She has: 2,154 posts

Joined: May 2001

Thanks vinny but that is a bit over my head to do that. I wouldn't even know where to begin.

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi DM,

I'm a bit tied up this weekend (figuratively speaking); if things loosen up next week, I'll see what I can do.

Vinny

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.