 |

05-14-2007, 11:52 AM
|
|
WebProWorld Member
|
|
Join Date: Aug 2006
Posts: 47
|
|
IE Hover
I'm working on a redesign of my http://www.paross.com/studio/template.htm site, and have tweaked the HTML Dog menu to drop down horizontally rather than vertically. But I don't know enough to adapt the IE Hover javascript, so IE6 doesn't work correctly.
Can someone tell me how to adapt the IE Hover javascript to function correctly?
Thanks in advance.
Phil
|

05-14-2007, 08:26 PM
|
 |
WebProWorld Veteran
|
|
Join Date: Sep 2005
Location: Kerala, India
Posts: 397
|
|
Re: IE Hover
Quote:
|
Originally Posted by PARoss
Can someone tell me how to adapt the IE Hover javascript to function correctly?
|
You could try out this one instead:
http://www.sivamdesign.com/scripts/dwld/tabmenu2.html
Works for all browsers.
|

05-15-2007, 06:24 AM
|
|
WebProWorld Member
|
|
Join Date: Aug 2006
Posts: 47
|
|
Sands,
I could, but I don't want a Javascript menu. The one I am using is pure CSS, except that hover doesn't work in IE6.
It should be a fairly simple thing to change the javascript used by IE6 to float left rather than stack (providing one knows Javascript).
Phil
|

05-15-2007, 07:16 AM
|
|
WebProWorld Pro
|
|
Join Date: Sep 2005
Location: Manchester, UK
Posts: 253
|
|
which version of I.E is this not working in? I've just looked at the site in IE7 and it behaves the same way as it does in firefox.
|

05-15-2007, 11:24 AM
|
|
WebProWorld Member
|
|
Join Date: Aug 2006
Posts: 47
|
|
Mike,
IE6. It's always IE6 or lower that causes trouble.
Phil
|

05-15-2007, 04:46 PM
|
|
WebProWorld Pro
|
|
Join Date: Sep 2005
Location: Manchester, UK
Posts: 253
|
|
One thing I would suggest is cutting out all the Javascript files apart from the iehover.js, and see if you still have a problem.
|

05-15-2007, 07:48 PM
|
|
WebProWorld Member
|
|
Join Date: Aug 2006
Posts: 47
|
|
Mike,
The menu is completely CSS driven, except it uses a conditional statement to hook IE6, which then uses the Javascript IEhover.js to implement the CSS.
The IEhover.js is about 12 lines of Javascript that makes IE6 behave. I have no idea what it does or how it does it. I've tried looking at the code, but I just don't "get it."
There are a couple of Javascript files, all which exist as independent files that are called into the HTML. So, I don't understand what you mean, or how it would help.
But thanks for thinking about it.
Phil
|

05-16-2007, 04:35 AM
|
|
WebProWorld Pro
|
|
Join Date: Sep 2005
Location: Manchester, UK
Posts: 253
|
|
In the menu javascript (iehover.js) a function is attached to the onload event. When the page has finished loading this event is triggered and the function is called. This then does some other stuff to get :hover to work in IE6.
Now if this onload event is being overwritten in other javascript files, there's your problem
|

05-16-2007, 06:14 AM
|
|
WebProWorld Member
|
|
Join Date: Aug 2006
Posts: 47
|
|
Mike,
I made a few changes, to no avail. I eliminated the other Javascript that may have been interfering.
The IE6 behavior is very weird. Two of the drop down lists are being "wrapped" at various points, as if the container width isn't wide enough. But the "wrapping" does not seem to be consistent.
I just don't get it, but I sure need a fix.
Phil
|

05-16-2007, 06:24 AM
|
 |
WebProWorld Veteran
|
|
Join Date: Dec 2006
Location: Calgary, Alberta, Canada
Posts: 332
|
|
Quote:
|
Originally Posted by PARoss
I could, but I don't want a Javascript menu. The one I am using is pure CSS, except that hover doesn't work in IE6.
|
If you're using JavaScript for other functions, why not use it for the menus too? CSS has its uses but it's not the Holy Grail of web programming. Since CSS implementation is so buggy in various browsers, restrict its use to where it mostly works.
|

05-18-2007, 04:37 AM
|
|
WebProWorld New Member
|
|
Join Date: May 2007
Posts: 1
|
|
Without trawling through the code and vast knowledge of how ie6 uses the css model, i'm afraid you aren't likely to get a solution...
here is a huge list of css only menus, many of which are cross browser compatible
http://www.cssplay.co.uk/menus/index.html
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|