Connecting Tech Pros Worldwide Forums | Help | Site Map

Dropdown menus in FireFox

Tom
Guest
 
Posts: n/a
#1: Jan 25 '07
I have taken over admin of a web site (I'm not a web developer by
trade) and the drop down menus are inoperative. There is Javascript
that was written about 6 or 7 years ago
that have some conditions pertaining to the browser in use but I'm not
sure
how to fit Mozilla into the equation. The menus do work in IE 6/7. I
have
not tested other browsers.

The site is www.omegaministry.org. You can view the source code from
the
home page (index.html).

Thanks in advance for any assistance...

Tom


Randy Webb
Guest
 
Posts: n/a
#2: Jan 25 '07

re: Dropdown menus in FireFox


Tom said the following on 1/25/2007 5:12 PM:
Quote:
I have taken over admin of a web site (I'm not a web developer by
trade) and the drop down menus are inoperative. There is Javascript
that was written about 6 or 7 years ago
that have some conditions pertaining to the browser in use but I'm not
sure
how to fit Mozilla into the equation. The menus do work in IE 6/7. I
have
not tested other browsers.
>
The site is www.omegaministry.org. You can view the source code from
the
home page (index.html).
>
Thanks in advance for any assistance...
Your problem originates here:

//simple browser check

f7_v4=(parseInt(navigator.appVersion)>=4 &&
parseInt(navigator.appVersion)<=5)?1:0

f7_ie=(document.all && f7_v4)?1:0

f7_ns=(document.layers && f7_v4)?1:0

Try to find a better navigation script and ditch that one.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
=?ISO-8859-1?Q?G=E9rard_Talbot?=
Guest
 
Posts: n/a
#3: Jan 25 '07

re: Dropdown menus in FireFox


Tom wrote :
Quote:
I have taken over admin of a web site (I'm not a web developer by
trade) and the drop down menus are inoperative. There is Javascript
that was written about 6 or 7 years ago
that have some conditions pertaining to the browser in use but I'm not
sure
how to fit Mozilla into the equation.

Visit this webpage:

Using Web Standards in your Web Pages (Updated Dec. 2006)
http://developer.mozilla.org/en/docs...your_Web_Pages

# 4 Developing Cross Browser/Cross Platform Pages

* 4.1 Browser identification approach (aka "browser sniffing"): not
best, not reliable approach
* 4.2 Using Object/Feature support detection approach: best and
overall most reliable

Gérard
--
remove blah to email me
Closed Thread