|
Home > Archive > Mozilla Browser > December 2006 > Drop Down Menus Don't Work in Firefox
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Drop Down Menus Don't Work in Firefox
|
|
| Sam Bench 2006-12-09, 1:13 am |
| I took over a church web site and discovered a problem. The site was
designed for IE and works well with IE. It uses drop down menus triggered
by an image map. The menus are stored in a server side include. I just
discovered that the menus don't operate in Firefox or Opera. This is a
problem I need to fix since the site is inaccessible to people using those
browsers. The address for the site is: http://www.norwinalliance.org/
Any ideas on how to get the menus to work in Firefox would be greatly
appreciated.
| |
| Manatee Memories 2006-12-09, 1:13 am |
| On Fri, 8 Dec 2006 21:35:56 -0500, in alt.fan.mozilla, "Sam Bench"
<roykoch@comcast.net> wrote:
>I took over a church web site and discovered a problem. The site was
>designed for IE and works well with IE. It uses drop down menus triggered
>by an image map. The menus are stored in a server side include. I just
>discovered that the menus don't operate in Firefox or Opera. This is a
>problem I need to fix since the site is inaccessible to people using those
>browsers. The address for the site is: http://www.norwinalliance.org/
>
>Any ideas on how to get the menus to work in Firefox would be greatly
>appreciated.
When I opened that site via the Firefox IE Tab extension
(https://addons.mozilla.org/firefox/1419/), the desired menus were
found, and usable.
--
"The two most abundant things in the universe are hydrogen and stupidity."
- Harlan Ellison
| |
| Vangard 2006-12-09, 7:12 am |
| > When I opened that site via the Firefox IE Tab extension
> (https://addons.mozilla.org/firefox/1419/), the desired menus were
> found, and usable.
Doesn't seem to work without it though.
I would suggest to the original poster to just rewrite the page without the pull down menus, they're not necessary, just keep it simple.
| |
| Leonidas Jones 2006-12-10, 1:14 am |
| Vangard wrote:
>
> Doesn't seem to work without it though.
>
> I would suggest to the original poster to just rewrite the page without
> the pull down menus, they're not necessary, just keep it simple.
>
>
Or he could use javascript pull downs, since the problem seems to be
with the image map.
Lee
| |
| Ralph Fox 2006-12-10, 1:14 am |
| On Fri, 8 Dec 2006 21:35:56 -0500, in message < 65SdnZGYl76UvOfYnZ2dnUVZ_tSunZ2d@comcast
.com>,
Sam Bench wrote:
> I took over a church web site and discovered a problem. The site was
> designed for IE and works well with IE. It uses drop down menus triggered
> by an image map. The menus are stored in a server side include. I just
> discovered that the menus don't operate in Firefox or Opera. This is a
> problem I need to fix since the site is inaccessible to people using those
> browsers. The address for the site is: http://www.norwinalliance.org/
>
> Any ideas on how to get the menus to work in Firefox would be greatly
> appreciated.
The javascript code needs a very small amount of updating.
Here is what to change in the source code for the home page.
For the other pages, the changes appear to be very similar.
Open the HTML source code in a plain text editor, and make these
two changes
1. Between the old lines 74 and 75, add a new line
var W3CDOM = (document.getElementById ? 1 : 0);
as shown below, so that the HTML source code
will now look like this.
~~~~~~~~~~NEW VERSION~~~~~~~~~~
<SCRIPT language=javascript>
<!--
window.onerror = null;
var W3CDOM = (document.getElementById ? 1 : 0);
var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var NS4 = (bName == "Netscape" && bVer >= 4);
var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
var NS3 = (bName == "Netscape" && bVer < 4);
var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
~~~~~~~~~~NEW VERSION~~~~~~~~~~
2. Modify the javscript functions showlayer() and hidelayer()
on old lines 97-116 as shown below (new lines 98-125)
~~~~~~~~~~OLD VERSION~~~~~~~~~~
// SHOW MENU
function showLayer(layerName){
if (NS4 || IE4) {
if (timeOn != null) {
clearTimeout(timeOn)
hideLayer(onLayer)
}
if (NS4 || IE4) {
eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
}
onLayer = layerName
}
}// HIDE MENU
function hideLayer(layerName){
if (menuActive == 0) {
if (NS4 || IE4) {
eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
}
}
}// TIMER FOR BUTTON MOUSE OUT
~~~~~~~~~~OLD VERSION~~~~~~~~~~
~~~~~~~~~~NEW VERSION~~~~~~~~~~
// SHOW MENU
function showLayer(layerName){
if (W3CDOM || NS4 || IE4) {
if (timeOn != null) {
clearTimeout(timeOn)
hideLayer(onLayer)
}
if ( W3CDOM ) {
document.getElementById(layerName).style.visibility="visible";
}
else
if (NS4 || IE4) {
eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
}
onLayer = layerName
}
}// HIDE MENU
function hideLayer(layerName){
if (menuActive == 0) {
if ( W3CDOM ) {
document.getElementById(layerName).style.visibility="hidden";
}
else
if (NS4 || IE4) {
eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
}
}
}// TIMER FOR BUTTON MOUSE OUT
~~~~~~~~~~NEW VERSION~~~~~~~~~~
--
Cheers,
Ralph
| |
| Sam Bench 2006-12-10, 7:12 am |
| Thanks for the input. How can you tell that the problem is with the image
map?
"Leonidas Jones" <Cap1MD@att.net> wrote in message
news:jsKeh.178420$Fi1.149061@bgtnsc05-news.ops.worldnet.att.net...
> Vangard wrote:
>
>
> Or he could use javascript pull downs, since the problem seems to be with
> the image map.
>
> Lee
| |
| Sam Bench 2006-12-12, 1:13 am |
| Ralph,
It worked!! Thank you very much. I was about to junk the whole site and
start over again because of the menu problem in Firefox and Opera. You are
a lifesaver!!
"Ralph Fox" <-@-.invalid> wrote in message
news:mo0nn210uc88a1ut3kcgeihk0cm8ucdi6h@
4ax.com...
> On Fri, 8 Dec 2006 21:35:56 -0500, in message
> < 65SdnZGYl76UvOfYnZ2dnUVZ_tSunZ2d@comcast
.com>,
> Sam Bench wrote:
>
>
> The javascript code needs a very small amount of updating.
>
> Here is what to change in the source code for the home page.
> For the other pages, the changes appear to be very similar.
>
> Open the HTML source code in a plain text editor, and make these
> two changes
>
> 1. Between the old lines 74 and 75, add a new line
> var W3CDOM = (document.getElementById ? 1 : 0);
> as shown below, so that the HTML source code
> will now look like this.
>
> ~~~~~~~~~~NEW VERSION~~~~~~~~~~
> <SCRIPT language=javascript>
> <!--
> window.onerror = null;
> var W3CDOM = (document.getElementById ? 1 : 0);
> var bName = navigator.appName;
> var bVer = parseInt(navigator.appVersion);
> var NS4 = (bName == "Netscape" && bVer >= 4);
> var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
> var NS3 = (bName == "Netscape" && bVer < 4);
> var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
> ~~~~~~~~~~NEW VERSION~~~~~~~~~~
>
> 2. Modify the javscript functions showlayer() and hidelayer()
> on old lines 97-116 as shown below (new lines 98-125)
>
> ~~~~~~~~~~OLD VERSION~~~~~~~~~~
> // SHOW MENU
> function showLayer(layerName){
> if (NS4 || IE4) {
> if (timeOn != null) {
> clearTimeout(timeOn)
> hideLayer(onLayer)
> }
> if (NS4 || IE4) {
> eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
> }
> onLayer = layerName
> }
> }// HIDE MENU
> function hideLayer(layerName){
> if (menuActive == 0) {
> if (NS4 || IE4) {
> eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
> }
> }
> }// TIMER FOR BUTTON MOUSE OUT
> ~~~~~~~~~~OLD VERSION~~~~~~~~~~
>
> ~~~~~~~~~~NEW VERSION~~~~~~~~~~
> // SHOW MENU
> function showLayer(layerName){
> if (W3CDOM || NS4 || IE4) {
> if (timeOn != null) {
> clearTimeout(timeOn)
> hideLayer(onLayer)
> }
> if ( W3CDOM ) {
> document.getElementById(layerName).style.visibility="visible";
> }
> else
> if (NS4 || IE4) {
> eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
> }
> onLayer = layerName
> }
> }// HIDE MENU
> function hideLayer(layerName){
> if (menuActive == 0) {
> if ( W3CDOM ) {
> document.getElementById(layerName).style.visibility="hidden";
> }
> else
> if (NS4 || IE4) {
> eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
> }
> }
> }// TIMER FOR BUTTON MOUSE OUT
> ~~~~~~~~~~NEW VERSION~~~~~~~~~~
>
>
> --
> Cheers,
> Ralph
>
>
>
>
| |
| Ralph Fox 2006-12-12, 7:13 am |
| On Mon, 11 Dec 2006 21:06:01 -0500, in message <9_ydnfu6G8wUk-PYnZ2dnUVZ_qisnZ2d@comcast.com>,
Sam Bench wrote:
> Ralph,
>
> It worked!! Thank you very much. I was about to junk the whole site and
> start over again because of the menu problem in Firefox and Opera. You are
> a lifesaver!!
You're welcome.
|
|
|
|
|