• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Not working with MSIE7

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:

 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Repost what you have now (html, css, and js).
 
joke time: What is brown and sticky? ... ... ... A stick! Use it to beat this tiny ad!
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic