aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Not working with MSIE7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Not working with MSIE7" Watch "Not working with MSIE7" New topic
Author

Not working with MSIE7

E Gilmore
Greenhorn

Joined: Jul 19, 2010
Posts: 5
Thanks for looking, I am a novice.

Desire: Drop down menu that works with IE7 & 8

Works with: MSIE6, all versions (that I have checked) of FF, Safari, Safari for iPhone

Page:
http://sfphotography.com/menu/test.html

All files:
http://sfphotography.com/menu/

Note, there are no linked pages, IE7 does not even show the option for selecting pages.

HTML:


JS file:


CSS file:

marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

E Gilmore wrote:... Works with: MSIE6...

Nope. I'm using IE 6 at work, and this doesn't work. It can't because you have no element with id of "nav," so the function is failing on line 5. (I'm guessing you want to assign an id to each ul that's hidden, like ul id="roomNav" and ul id="ratesNav" and then pass that id to the function so it can work its magic on that element.)

In any case, note that display none is applied to li ul (the ones you want to assign ids to), so all you need to do is display that ul and the children will display as well. You do no need to iterate through them.

But to do that, if you change that ul's class to "over," then you will need to add li ul.over to the list for "the magic" { display: block; }.
E Gilmore
Greenhorn

Joined: Jul 19, 2010
Posts: 5
Thanks for the script tips. I am on a Mac & no IE, had a friend check with IE6 said fine but he she not realize there were drop down menus.

In the meantime I ran it through:
http://validator.w3.org/check?

Found lots of errors but they are now fixed.

Will have to digest the script suggestions!
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

E Gilmore wrote:... I am on a Mac & no IE...

That's what I use at home.

Post back with your progress on the dropdowns. We can get those working.
E Gilmore
Greenhorn

Joined: Jul 19, 2010
Posts: 5
Cleaning up the HTML seems to now make it work (in IE7). There is an error message though: Object required

Have not changed the script.
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Repost what you have now (html, css, and js).
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Not working with MSIE7