Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-14-2012, 03:56 AM   PM User | #1
Cd0g112494
New Coder

 
Join Date: Sep 2011
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Cd0g112494 is an unknown quantity at this point
Jquery Mega Menu

Hello,

Now this is a little hard to explain, but I have a mega menu and when you hover over the products <a> it drops down and reveals the mega menu. Now, when your mouse is over the links that are actually in the menu, and you take it off the original products link, the products button stays in it hover state. However, this is not the case in IE, the original products button leaves its hover state whenever you hover over the links in the drop down mega menu. I have tried fixing it in CSS, but it just won't work. (Please don't say it is the DOCTYPE, because the site host I am using will not let me change it.../ So, I wanted to write a little jquery to change the CSS of the original products hover state when the links beneath it are hovered over. This is what I have, but I can't really get it to work. Any help would be greatly apprecitated!

jquery

Code:
$(div.sub).hover(function(){
			$(li.products).css('background-image','url(http://p.b5z.net/i/u/10145668/h/Hammer_Sprite.gif) -144px -63px;')
	

});
the uls with the links in it are in a div named 'sub', and when they are hovered over the li.products should change its CSS to what is mentioned.

link to the page

http://www.edirecthost.com/hhmobileh...re/?preview=1#


Thanks so much!
Cd0g112494 is offline   Reply With Quote
Reply

Bookmarks

Tags
css, html, jquery, lihovers, megamenu

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 06:12 AM.


Advertisement
Log in to turn off these ads.