Works in everything BUT IE!
I was hoping that you all could help with some code that I am working on. I did not create from scratch - but am finding that it works everywhere but IE. http://www.chapelhillinternalmedicine.com/test/TEST1.HTML Is the site. The problem: the navigation.
I want a visitor to click on the parent - have it go to new page AND expand to see the child(sub categories)
I also want to child (sub categories) to be clickable.
Ideas of what I may need to change, add, fix etc to make this work across browsers - Esp IE and FF?
Thanks guys!
webwiz posted this at 02:38 — 29th January 2008.
He has: 629 posts
Joined: May 2007
Hmm. I am not finding it working consistently anywhere. Your scripts are failing because of errors in your (X)HTML.
#1. The menu has list items with no enclosing UL or OL
#2. The script refers to images with id="pm1", "pm2", "pm3" which are mostly missing from your markup
#3. You have a mix of HTML, XHTML, and proprietary Microsoft markup
The missing image elements cause the script to fail on some menu items, but work on others. The markup errors are also causing cross-browser display issues. I suggest a visit to the validator[1].
If you still have problems after correcting the markup, do let us know and we will try to help. (I suggest starting a new thread - some of us rely on the news feed, which does not show replies.)
[1] http://tinyurl.com/337dk5
Cordially, David
--
delete from internet where user_agent="MSIE" and version < 8;
JeevesBond posted this at 04:04 — 29th January 2008.
He has: 3,956 posts
Joined: Jun 2002
Seems to work alright in IE6 here. As for the extra of it directing to a new page when they click a category: why not add an
id="pagename"
to thebody
tag? Then you can target that using CSS. For example, in the HTML:<body id="biographies">
Then in the CSS:
body#biographies #m2 {
display: block;
}
Also, you have
return false;
in your link'sonclick
. That will stop the browser from moving to the new page, remove it and the link should work.a Padded Cell our articles site!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.