PDA

View Full Version : javascript help please



matauri
10-03-2003, 11:40 PM
I kicked myself this morning, I used a script that Netcrap, Mozilla & Opera aren't picking up (it looks good in IE6). So I am asking for some help on this, because I am not a wiz at javascript (rank amataeur actually!)

Here is the site:
http://www.activnet.org/attitude/

Can I make this script work in the alternate browsers? Or...do you know of one that I can make look the same as it does in IE for the other browsers? I like the current look & function of it, I just want one thats compatable with the other browsers.

I wonder if there is any other industry where you have to be compatable with this, compatable with that, compatable with everything !

Thanks in advance for any help you can give :-)

Cindy

paulhiles
10-04-2003, 08:14 AM
Hi Cindy

I see what you mean about the menu script... it didn't display in Mozilla 1.4 at all. Opera 7.11 was okay, just took a while for the browser to load. I'm not entirely convinced it works 100% in IE 6... if you resize your browser to say 800x600, the last (far right) menu element then pops up on the top left hand corner!

With regards to how you actually use the script... I would recommend using a link to an external JavaScript file, rather than having the script written out in full (inline) on each page. This makes it a lot easier to change a single menu script for the whole site rather than so many pages.

This said, you definitely need a replacement for the current menu script, and the good news is that there are plenty to choose from.. bad news is that there aren't enough hours in the day to test them all out!! LOL!

Also you don't have to be a JavaScript expert these days, as there are online menu generators that will create all the necessary code for you! I personally use a menu script (CoolMenus 4) that was written by Thomas Brattli, you can see his site here (http://www.dhtmlcentral.com/projects/coolmenus/).

Here's a few alternative sites you may want to check out:
http://www.dynamicdrive.com/dynamicindex1/topmen4/index.htm
http://javascript.cooldev.com/scripts/coolmenu/
http://www.brothercake.com/dropdown/index.html - free for personal use

N.B. There are two major downsides in using a purely Javascript navigation system; (1) search engine bots are not able to follow your inbound links and (2) a visitor who has disabled Javascript in their browser settings would not be able to navigate your site. Therefore you should consider implementing an alternative text-based navigation somewhere else on your page.

Hope this helps in some way

Paul

AlexBel
11-09-2003, 05:37 PM
Hi Cindy,
I have found out three distinctions:
1 - different font-size on menu.
2 - different alignment of the text.
3 - difference in displays of a border and pictures on both sides of the text.