473,386 Members | 1,860 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,386 software developers and data experts.

Won't Work on MAC

Hi All, I have never written any code for MACs and I don't own a MAC.
I have an intranet site that has drop down menus very similar to the
ones on this site .. http://www.fedex.com/us/

The menus work perfectly on Windows IE but not at all on MAC IE. Any
chance someone out there can easily identify the problem in my code?
I'm sure I'm referencing some object or event that doesn't exist in
MACs but I can't find any docs that would help me figure out where the
problem is.

Here's the CSS:

a
{
text-decoration: none;
color: black;
}
a#pw
{
color: blue;
text-decoration: underline;
cursor: hand;
}
a:hover li
{
background-color: #E35152;
}
ul
{
margin: 0;
padding: 0;
border: 0px none;; list-style-type:none
}
li
{
border-left:2px solid; border-right:2px solid; border-top:0px solid;
border-bottom:2px solid; cursor: hand;
float: left;
position: relative;
font-size: 10pt;
text-align: left;
width: 142;
padding: 4;
background-color: #C0C0C0
}
li ul
{
position: absolute;
left: -2px;
top: 23px;
display: none;
padding: 0;
}
li#title
{
text-align: left;
height: 20px;
font-weight: bold;
padding: 3;
border-left-width: 0;
}
li:hover ul, li.over ul
{
display: block;
}
li:hover, li.over
{
background-color: #E35152;
}
Here's the javascript:

function startList()
{
if (document.all&&document.getElementById)
{
navRoot = document.getElementById('nav');
for (i=0; i<navRoot.childNodes.length; i++)
{
node = navRoot.childNodes[i];
if (node.nodeName=='LI')
{
node.onmouseover=function()
{
this.className+=' over';
}
node.onmouseout=function()
{
this.className=this.className.replace(' over', '');
}
}
}
}
}
Thanks in advance for the help.

- Matt

Jul 23 '05 #1
1 1143
ma**********@gmail.com wrote:
Hi All, I have never written any code for MACs and I don't own a MAC.
I have an intranet site that has drop down menus very similar to the
ones on this site .. http://www.fedex.com/us/

The menus work perfectly on Windows IE but not at all on MAC IE. Any
chance someone out there can easily identify the problem in my code?
I'm sure I'm referencing some object or event that doesn't exist in
MACs but I can't find any docs that would help me figure out where the
problem is.
It may help if you identify which Mac IE you're having problems with.
There is quite a bit of difference between 5.0 and later versions
(support for some 'features' was actually reduced).
[...] Here's the javascript:

function startList()
{
if (document.all&&document.getElementById)
Probably nothing to do with your issue, but it seems strange to
restrict operation of the script to only browsers that support both
getElementById and document.all - particularly given that you use
only getElementById.

Have a look in the group FAQ for ways to support document.all.
{
navRoot = document.getElementById('nav');
for (i=0; i<navRoot.childNodes.length; i++)
{ [...] }
}
Thanks in advance for the help.

- Matt


--
Fred
Jul 23 '05 #2

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

Similar topics

16
by: Kerry Neilson | last post by:
For the past couple of months, Idle won't start when I invoke it. I am at a complete loss for why this is. When this happens, they python command line still starts, and python works fine...
1
by: Jim | last post by:
Hey guys I DESPERATLY need some help with this small javascript i have on this website. All that it's supposed to do is change the button image once it's pressed but alas... I copy-pasted the code...
3
by: DFS | last post by:
I've been working around this for years (I believe), so I figured someone here might know: Why won't a crosstab query accept a value from a form reference? TRANSFORM...
7
by: simon | last post by:
I have simple html(aspx) page, but vertical height won't work. Even if i had set the height of a table=100%, the table is not 100% height. I spend a lot of time(my real page is more...
3
by: musosdev | last post by:
Hi guys Okay, I've setup my projects to open and compile fine in VS2005 using FPSE and remote web, but it's *really* slow. So I thought I'd have a go at doing it the normal way, by loading from...
11
by: John Ortt | last post by:
Hi everyone. I have a database which I have developed in Access 2000 which is working nicely. The problem is that my customer only has Access 97. I tried to convert the database but the main...
7
by: Eran.Yasso | last post by:
Hi, I have project that automate excel(using Excel COM) which works fine in my home. I took the project from my home to work and tried to build the project but it won't built. I get error "The...
2
by: scitrenbaum | last post by:
Here is the dilemma. I have a website where everything works perfectly in all browsers except for Safari. When you are in Safari and you go to this page... ...
2
tpgames
by: tpgames | last post by:
Two days ago, MS office Word would type JP fonts, I thought. I didn't think I was using Works. Now, it won't type in JP. Jasc Paint shop pro 8, should type JP fonts because I am using XP, according...
4
by: z55177 | last post by:
My domain: http://www.esthevision.cz/ This is the cause of my problem. The template is supposed to look somewhat like this: PINK STRIPE http://themebot.com/website-templates/ht... I created an...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.