473,396 Members | 1,895 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.

CSS drop down menus in IE

abs

Hi!

I've made a drop down menu at my site following
the instructions in:

http://www.alistapart.com/articles/dropdowns/
This is a CSS menu with a javascript fix for the hover
bug in IE. I can get it to work in Mozilla/Firebird but it
doesn't work in IE.

The URL of my site is:

http://immersion.fotografist.com/
Here is the URL for the style sheet:

http://immersion.fotografist.com/scripts/styles.css
The javascript for the IE bug:

<script type="text/javascript">
<!--

startList = function() {
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", "");
}
}
}
}
}
window.onload=startList;

//-->
</script>

And, finally, a piece of the HTML code for the
menu:

<ul id="nav">
<li><div><a href="/forum" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('forum','','/images/es/forumon.gif',1)"><img
src="/images/es/forum.gif" name="forum" border="0" alt=""
title=""></a></div></li>
<li><div><a href="/pages/es/links.html"
onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('links','','/images/es/linkson.gif',1)"><img
src="/images/es/links.gif" name="links" border="0" alt=""
title=""></a></div></li>
<li><div><a href="/pages/es/download.html"
onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('download','','/images/es/downloadon.gif',1)"><img
src="/images/es/download.gif" name="download" border="0" alt=""
title=""></a></div></li>
<li>
<div><a href="" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('games','','/images/es/gameson.gif',1)"><img
src="/images/es/games.gif" name="games" border="0" alt=""
title=""></a></div>
<ul>
<li><a href="/pages/es/gamesracingspirit.html">racing spirit</a></li>
<li><a href="/pages/es/gamesfurpuppies.html">fur puppies</a></li>
</ul>
</li>
<li><div><a href="/pages/es/info.html"
onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('info','','/images/es/infoon.gif',1)"><img
src="/images/es/info.gif" name="info" border="0" alt=""
title=""></a></div></li>
</ul>
Have any of you ever used this kind of menu ? Have you made it work ?
Can you see any error in mine ?
Thanks in advance
--
Abs

Jul 20 '05 #1
1 1801
It doesnt work for me in any browser. and yes i have tried in
mozilla/firebird!

Rene
Jul 20 '05 #2

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

Similar topics

4
by: Nanos | last post by:
For the form I need to create drop down select with say five different options. There also should be possibility to enter own option if one is not listed. How can I do it.? Thank you in advance...
3
by: KK | last post by:
Drop-down menus are the hottest thing since Wonder Bread but . . . 1. Alot of people put them in the they-look-nice-but-you-cant-code-them-right-so-they-always-look-messed-up category (a la...
10
by: Haines Brown | last post by:
I've implemented the horizontal drop down menu discussed recently in this newsgroup, and it works nicely under Galeon and Mozilla, but not IE 5.0. Here are the problems: Under IE 5.0, the...
0
by: vikram.cvk | last post by:
Hello Experts, Im trying to design a CSS vertical drop down menu which should have the following functionality. Home About Us | -->Overview
2
by: pantagruel | last post by:
I have an old web application I did where browsers with dynamic capabilities received a drop down menu on the top of the page and a fold out on the left hand side of the page and non-dynamic...
1
by: Capitan Catarro | last post by:
Hi everybody, I have a little problem with drop down menus. I have a PHP page in which I extract some categories (from a database). I put those categories in a drop down menu without problems. I...
3
by: Andrew | last post by:
Hello, friends, I was asked to implement a .aspx page with drop down menus. When a mouse pointer moves over a menu bar, a drop down list containing sub-menus will show up. Thus a user may select...
1
by: ReGenesis0 | last post by:
I am doing drop-down menus for a site I'm developing (not my idea, neadless to say.) I have a nice robust Javascript that handles it, and it actually WORKS, works across browsers even! How...
1
by: Kaland | last post by:
Do the search engines follow links that are within forms (like the drop-down menu) so that those pages are indexed? Here is the code for a sample drop-down menu that I created. <form><select...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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
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...

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.