IE6 Hover Bug Fix for Drupal 6
o.k. it's not just for Drupal 6, but it makes the title sound so much better :)
The joys of Drupal are no stranger to the limitations of IE6. I have spent a lot time time playing with themes... it's really been a joy, and part of that has been experimenting with jQuery. In this situation, it was a true lifesaver. While working on a site with some cool hover classes in the primary menu I came across a long standing issue, of course, related it IE6 and earlier... trying to establish a hover state for a li (line) item. The poor browser just won't give us a hover state, so we have to force it to give us an active state.
After looking through a dozen or so google results I came across this post, and with a little editing... it worked like a charm.
Here is what I ended up with as my final code for a standard Dupal install that would want to use it as a solution.
The Code
$('#primary li').hover(function(){
$(this).addClass('active');
}, function() {
$(this).removeClass('active');
});


Comments
We have been selling prom
Great Articles………….. thank
You probably spent quite a
Abercrombie Jeans
replica rolex
ama nereyekadar
replica Rolex Yachtmaster
http://www.rhineweddingstore.com
replica Rolex Yachtmaster
http://www.rhineweddingstore.com
replica Rolex Yachtmaster
China Wholesale Wholesale
replica Rolex Yachtmaster
If you're looking to the
You should be able to find
You should be able to find
Adidas Shoes Online Shop-Hot
UGG Boots|Classic UGG Boots Sale-Cozy UGG Boots UK Sheepskin Boo
http://www.excelwatch.com
fashion style vogue
fashion style vogue
replica Rolex Yachtmaster
I know a very nice prom
We are air max sale Online
beijing
replica Rolex Yachtmaster
CS
qssf
Thanks
dadad
Post new comment