473,396 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Popup menu works in IE but not Netscape

Greetings! I am brand new to Javascript, and I have been given a task:
On our company's website, the popup menu works in IE but not Netscape.
(I only care about the latest versions of both.) Apparently, the code
is old, and there isn't anyone else here familiar with this sort of
thing, either. I've been digging around a lot on the internet about
it, and I've found a lot of promising links, but nothing that has been
able to explain to me what I need to do, at least in a way that I can
understand. I'm hoping that the solution to this is so easy that even
a child could do it (well, a child versed in Javascript, anyway), and
that there might be someone in this group who can say, "Well,
obviously, you need to do *this* instead of *that*," or something of
that nature.

So here's the .js code. I don't know if there's anything else that's
relevant, but if so, I can post that, too.

document.write("<DIV ID='divMenuBar'>");
document.write("<TABLE ID='tblMenuBar' BORDER='0'>");
document.write("<TR>");
if(navigator.appName=="Netscape")
{
document.write("<TD class='clsMenuBarItem' id='tdMenuBarItem1'> <A
HREF='http://www.analyticalgroup.com/about.htm'>Company</A></TD>");
document.write("<TD class='clsMenuBarItem' id='tdMenuBarItem2'>| <A
HREF='http://www.analyticalgroup.com/soft.htm'>Software</A></TD>");
document.write("<TD class='clsMenuBarItem' id='tdMenuBarItem3'>| <A
HREF='http://www.analyticalgroup.com/serv.htm'>Service </A></TD>");
document.write("<TD class='clsMenuBarItem' id='tdMenuBarItem4'>| <A
HREF='http://www.analyticalgroup.com/querynet.htm'>QueryNet
</A></TD>");
document.write("<TD class='clsMenuBarItem' id='tdMenuBarItem5'>| <A
HREF='http://www.analyticalgroup.com/support.htm'>Support </A></TD>");
document.write("<TD class='clsMenuBarItem' id='tdMenuBarItem6'>| <A
HREF='http://www.analyticalgroup.com/search.htm'>Search </A></TD>");
}
else
{
document.write("<TD class='clsMenuBarItem' id='tdMenuBarItem1'>
Company</TD>");
document.write("<TD class='clsMenuBarItem' id='tdMenuBarItem2'>|
Software</TD>");
document.write("<TD class='clsMenuBarItem' id='tdMenuBarItem3'>|
Service</TD>");
document.write("<TD class='clsMenuBarItem' id='tdMenuBarItem4'>|
QueryNet</TD>");
document.write("<TD class='clsMenuBarItem' id='tdMenuBarItem5'>|
Support</TD>");
document.write("<TD class='clsMenuBarItem' id='tdMenuBarItem6'>|
Search</TD>");
}
document.write("</TR>");
document.write("</TABLE>");
document.write("</DIV>");
document.write("<DIV CLASS='clsMenu' ID='divMenu1'>");
document.write("<DIV CLASS='clsMenuSpacer'></DIV>");
document.write("<DIV><A
HREF='http://www.analyticalgroup.com/index.htm'>Home</A></DIV>")
document.write("<DIV><A
HREF='http://www.analyticalgroup.com/about.htm'>About us</A></DIV>");
document.write("<DIV><A
HREF='http://www.analyticalgroup.com/form/feedback/index.html'>Customer
service</A></DIV>");
document.write("<DIV><A
HREF='http://www.analyticalgroup.com/jobop.htm'>Career
opportunities</A></DIV>");
document.write("<DIV><A
HREF='http://www.analyticalgroup.com/dirsdl.htm'>Directions (Scottsdale
office)</A></DIV>");
document.write("<DIV><A
HREF='http://www.analyticalgroup.com/dirchi.htm'>Directions (Chicago
office)</A></DIV>");
document.write("</DIV>");
document.write("<DIV CLASS='clsMenu' ID='divMenu2'>");
document.write("<DIV CLASS='clsMenuSpacer'></DIV>");
document.write("<DIV><A
HREF='http://www.analyticalgroup.com/soft.htm'>Featured
software</A></DIV>");
document.write("<DIV><A
HREF='http://www.analyticalgroup.com/wincross.htm'>WinCross</A></DIV>");
document.write("<DIV><A
HREF='http://www.analyticalgroup.com/runtime.htm'>WinCross
Runtime</A></DIV>");
document.write("<DIV><A
HREF='http://www.analyticalgroup.com/winquery.htm'>WinQuery</A></DIV>");

....etc.

Any ideas, anyone?

Thanks in advance!!

Best Regards,
Enrika

Mar 10 '06 #1
5 1207
Enrika said the following on 3/10/2006 3:29 PM:
Greetings! I am brand new to Javascript, and I have been given a task:
On our company's website, the popup menu works in IE but not Netscape.
(I only care about the latest versions of both.) Apparently, the code
is old, and there isn't anyone else here familiar with this sort of
thing, either. I've been digging around a lot on the internet about
it, and I've found a lot of promising links, but nothing that has been
able to explain to me what I need to do, at least in a way that I can
understand. I'm hoping that the solution to this is so easy that even
a child could do it (well, a child versed in Javascript, anyway), and
that there might be someone in this group who can say, "Well,
obviously, you need to do *this* instead of *that*," or something of
that nature.

So here's the .js code. I don't know if there's anything else that's
relevant, but if so, I can post that, too.

document.write("<DIV ID='divMenuBar'>");
document.write("<TABLE ID='tblMenuBar' BORDER='0'>");
document.write("<TR>");
if(navigator.appName=="Netscape")


Stop! Ditch that script and find you a new one.
Any script that relies on navigator.appName is junk and should be avoided.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 10 '06 #2
Ok. :) Any suggestions on where I might find something better?

Mar 10 '06 #3
In addition, it appears that the language that I am using for search
purposes may be incorrect. I've been using the term "popup menu," but
the examples I've found are dropdown menus that allow you to click on a
down arrow in order to display the choices. What I need is to allow
the mouse pointer hovering over a top-level menu item to automatically
cause the sub-menu to display, and then go away if the mouse pointer is
moved elsewhere. Is there a specific term for that sort of thing, or
something that I can type into a search engine that will give me links
to info on that kind of menu?

You can see what I mean by going here (in IE only, because Netscape
doesn't work):

http://www.analyticalgroup.com/soft.htm

In IE, the menu items in the dark green bar near the top of the page
will display submenus when the mouse rolls over them. Does anyone know
what this sort of thing is called?

Mar 10 '06 #4
Enrika said the following on 3/10/2006 5:41 PM:
Please quote what you are replying to.

If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at
the top of the article, then click on the "Reply" at the bottom of the
article headers.

<URL: http://www.safalra.com/special/googlegroupsreply/ >
In addition, it appears that the language that I am using for search
purposes may be incorrect. I've been using the term "popup menu," but
the examples I've found are dropdown menus that allow you to click on a
down arrow in order to display the choices. What I need is to allow
the mouse pointer hovering over a top-level menu item to automatically
cause the sub-menu to display, and then go away if the mouse pointer is
moved elsewhere. Is there a specific term for that sort of thing, or
something that I can type into a search engine that will give me links
to info on that kind of menu?


"fly out menu" seems to be the most popular term for it. Search the
c.l.j archives. You can even find pure CSS menus.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 11 '06 #5
Randy Webb wrote:
If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at
the top of the article, then click on the "Reply" at the bottom of the
article headers.
Much thanks. I've just been reading the posts on the Google site, and
it didn't occur to me that it might be a problem elsewhere. I
apologize for the inconvenience.
"fly out menu" seems to be the most popular term for it. Search the
c.l.j archives. You can even find pure CSS menus.


MUCH appreciated, thank you. :)

Enrika

Mar 11 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Yvan J. Gagnon | last post by:
I am currenly developing a web site using Macromedia fireworks, and am trying to figure out a way (through hand-coding) of attaching a javascript function (onClick="doit=false") to each of the...
6
by: Mica Cooper | last post by:
Hi, I have a series of Select menus on a page. I am trying to allow the user to click on the Select title and have it popup a help window. This works fine with the following code except that all...
1
by: David | last post by:
Hi, I use the following page code to open a popup window - it works OK, but whilst the popup is loading you can see the URL in the title of the popup until it's fully loaded and then the title...
9
by: flarkblark | last post by:
I recently had the displeasure of looking at the code required to implement the pop-up menus used in a pulldown menu system for a webpage. The sheer amount of Javascript required was amazing...
2
by: Moon | last post by:
Seems I still haven't got the hang of all those window generating code in Javascript. I've got a page with about 15 photo thumbnails. When you click on a thumbnail a new window pops up which shows...
8
by: Bijoy Naick | last post by:
It seems like the BBC sports site is able to get past popup blockers.. For eg.. http://news.bbc.co.uk/sport1/hi/cricket/default.stm. Click on the Video icon under "Watch and Listen" - right hand...
2
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at...
1
by: Bill H | last post by:
I run a dbms application that interfaces with the web. This module creates a frames page with two frames ('main' and 'mwinfoframe'). All communication with the dbms is routed through the...
3
by: EnjoyNews | last post by:
I have a popup problem. I have a script that generates a popup for image viewing. It has 2 function, and the first is that it automaticly generates the popup window to the size of the image,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.