Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
I can't get this drop down method working in IE6
Old 10-06-2007, 07:57 AM I can't get this drop down method working in IE6
Defies a Status

Posts: 3,420
Trades: 0
I'm currently using Stu Nicholls' pure CSS drop down menu on my site redesign but I can't figure out how to get it to work in IE 6 (Firefox and IE7 work fine but IE6 doesn't).

His site explains the method and his code can be viewed by viewing his source which gives everything you actually use on your site.

My main CSS file is here and the dropdown CSS for IE6 is here. I've been trying to get my head round this for a while and I still can't figure it out.

If someone can show me what I'm doing wrong and how I can fix it, It'll be very appreciated and maybe some Talkupation can go your way

Dan
CSS4Life is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-06-2007, 09:51 AM Re: I can't get this drop down method working in IE6
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
The :hover pseudo-class in IE is only supported on the <a>. In order to make it work on any other element, you need some scripting. Google for "whatever hover".
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 10-06-2007, 12:50 PM Re: I can't get this drop down method working in IE6
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
Well, there are DHTML Menus and Javascript Menus that you can use.

There are sample on each of those pages. Especially with Javascript you can just change the CSS properties of the objects just like you already have. It just takes the :hover out of the code.
__________________
<?php if($Adsense_Revenue > 0): define('HAPPINES','100%'); else: define('HAPPINESS', '0%') endif; ?>
coolkbk585 is offline
Reply With Quote
View Public Profile Visit coolkbk585's homepage!
 
Old 10-08-2007, 02:57 PM Re: I can't get this drop down method working in IE6
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
And if someone has javascript turned off ?? Not the best solution to throw in the towel and rely on JS. The HTC behavior method targets ONLY IE6 and lower, so it interferes with nothing else.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 10-08-2007, 03:50 PM Re: I can't get this drop down method working in IE6
Defies a Status

Posts: 3,420
Trades: 0
LadynRed, with respect and while I'm not trying to alienate people visiting my site, recent browser statistics showed that the vast majority of people (something like 96%) had Javascript turned on.

Also, can I produce a conditional comment to IE6 to render the Javascript, but that IE7 and FF will ignore?
CSS4Life is offline
Reply With Quote
View Public Profile
 
Old 10-09-2007, 09:35 AM Re: I can't get this drop down method working in IE6
Foundationflash's Avatar
Ultra Talker

Posts: 410
Name: Harry Burt
Location: Colchester, Essex, England
Trades: 0
How do you get stats on how many of your visitors have JavaScript enabled? Not important but the google urchin to record visitors relies on JS...
__________________
Foundation Flash tutorials :
Please login or register to view this content. Registration is FREE


New Dreamed Up Web Design:
Please login or register to view this content. Registration is FREE
Foundationflash is offline
Reply With Quote
View Public Profile Visit Foundationflash's homepage!
 
Old 10-09-2007, 02:31 PM Re: I can't get this drop down method working in IE6
Defies a Status

Posts: 3,420
Trades: 0
http://www.w3schools.com/browsers/browsers_stats.asp

W3Schools shows that about 6% of people have Javascript disabled.

I'd admit this might be a slight exaggerated as W3 attracts a lot of techie sort people, but it's still a good approximation of the number.
CSS4Life is offline
Reply With Quote
View Public Profile
 
Old 10-09-2007, 02:57 PM Re: I can't get this drop down method working in IE6
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Point taken. However, if you rely solely on a javascript menu, then you may be making your navigation inaccessible to people who are using assistive technology - which does not execute JS - or text-only browsers which also do not run JS. If you're going to use a JS solution, make sure it's accessible.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 10-09-2007, 03:02 PM Re: I can't get this drop down method working in IE6
Defies a Status

Posts: 3,420
Trades: 0
Don't worry - I much prefer a CSS menu and I'm hoping to use a Javascript one for IE6, rather than as a replacement to my current menu
CSS4Life is offline
Reply With Quote
View Public Profile
 
Old 10-09-2007, 06:08 PM Re: I can't get this drop down method working in IE6
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
Quote:
Originally Posted by whym View Post
Don't worry - I much prefer a CSS menu and I'm hoping to use a Javascript one for IE6, rather than as a replacement to my current menu
LNR, that's what I was saying. I didn't mean use all Javascript, but there's really no other alternative for IE6.
__________________
<?php if($Adsense_Revenue > 0): define('HAPPINES','100%'); else: define('HAPPINESS', '0%') endif; ?>
coolkbk585 is offline
Reply With Quote
View Public Profile Visit coolkbk585's homepage!
 
Reply     « Reply to I can't get this drop down method working in IE6
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.97477 seconds with 12 queries