• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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).
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic