Connecting Tech Pros Worldwide Help | Site Map

Dropdown menus in FireFox

  #1  
Old January 25th, 2007, 10:25 PM
Tom
Guest
 
Posts: n/a
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

  #2  
Old January 25th, 2007, 10:35 PM
Randy Webb
Guest
 
Posts: n/a

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/
  #3  
Old January 25th, 2007, 11:45 PM
=?ISO-8859-1?Q?G=E9rard_Talbot?=
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dropdown menus appear behind tabs in IE7 and IE6 seanr answers 4 November 13th, 2007 07:45 PM
What makes vertical dropdown menus ... vertical? paintedjazz@gmail.com answers 9 June 26th, 2007 09:35 PM
CSS Dropdown Menus: Firefox vs IE7 positioning Mark answers 4 January 25th, 2007 03:35 AM
onmouseleave event in IE jaysonnward@yahoo.com answers 5 November 22nd, 2006 03:05 AM