iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-14-2007, 12:52 PM
WebProWorld Member
 
Join Date: Aug 2006
Posts: 47
PARoss RepRank 0
Default 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
__________________
www.paross.com &
www.webproper.com
Reply With Quote
  #2 (permalink)  
Old 05-14-2007, 09:26 PM
sands's Avatar
WebProWorld Veteran
 
Join Date: Sep 2005
Location: Kerala, India
Posts: 395
sands RepRank 1
Default 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.
__________________
My Nook | My Biz | My Photos
Reply With Quote
  #3 (permalink)  
Old 05-15-2007, 07:24 AM
WebProWorld Member
 
Join Date: Aug 2006
Posts: 47
PARoss RepRank 0
Default

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
__________________
www.paross.com &
www.webproper.com
Reply With Quote
  #4 (permalink)  
Old 05-15-2007, 08:16 AM
WebProWorld Pro
 
Join Date: Sep 2005
Location: Manchester, UK
Posts: 254
mikesmith76 RepRank 0
Default

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.
Reply With Quote
  #5 (permalink)  
Old 05-15-2007, 12:24 PM
WebProWorld Member
 
Join Date: Aug 2006
Posts: 47
PARoss RepRank 0
Default

Mike,

IE6. It's always IE6 or lower that causes trouble.

Phil
__________________
www.paross.com &
www.webproper.com
Reply With Quote
  #6 (permalink)  
Old 05-15-2007, 05:46 PM
WebProWorld Pro
 
Join Date: Sep 2005
Location: Manchester, UK
Posts: 254
mikesmith76 RepRank 0
Default

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.
Reply With Quote
  #7 (permalink)  
Old 05-15-2007, 08:48 PM
WebProWorld Member
 
Join Date: Aug 2006
Posts: 47
PARoss RepRank 0
Default

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
__________________
www.paross.com &
www.webproper.com
Reply With Quote
  #8 (permalink)  
Old 05-16-2007, 05:35 AM
WebProWorld Pro
 
Join Date: Sep 2005
Location: Manchester, UK
Posts: 254
mikesmith76 RepRank 0
Default

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
Reply With Quote
  #9 (permalink)  
Old 05-16-2007, 07:14 AM
WebProWorld Member
 
Join Date: Aug 2006
Posts: 47
PARoss RepRank 0
Default

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
__________________
www.paross.com &
www.webproper.com
Reply With Quote
  #10 (permalink)  
Old 05-16-2007, 07:24 AM
DaveSawers's Avatar
WebProWorld Veteran
 
Join Date: Dec 2006
Location: Calgary, Alberta, Canada
Posts: 492
DaveSawers RepRank 3DaveSawers RepRank 3
Default

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.
__________________
Dynamic Software Development
www.activeminds.ca
Reply With Quote
  #11 (permalink)  
Old 05-18-2007, 05:37 AM
WebProWorld New Member
 
Join Date: May 2007
Posts: 1
PaulZ RepRank 0
Default

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
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:08 PM.



Search Engine Optimization by vBSEO 3.3.0