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 09-30-2009, 07:04 PM   PM User | #1
riseofdesign
New to the CF scene

 
Join Date: Sep 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
riseofdesign is an unknown quantity at this point
jQuery Pop Up Problem

Hello there,

I am new to jQuery and I am working on a website with some smooth effects.

I want to pop up a <div> when the mouse is over the link. If the mouse isn't anymore over the link the <div> should hide.

At the moment when the mouse is over the link the <div> appears, but it doesn't disappear when the mouse isn't over the link anymore.

Code:
$(".abouthover").hide();
		$(".about").hover(function(){
			$(".abouthover").slideToggle("slow");
		});
What can I do that the <div> disappears when the mouse isn't over the link anymore.
riseofdesign is offline   Reply With Quote
Old 09-30-2009, 10:53 PM   PM User | #2
Fumigator
UE Antagonizer


 
Fumigator's Avatar
 
Join Date: Dec 2005
Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Posts: 7,686
Thanks: 42
Thanked 637 Times in 625 Posts
Fumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of light
The hover function takes two arguments-- the first is a function that describes what to do when the mouse moves into the element, the second is a function that describes what to do when the mouse moves out of the element.

You may be interested in using a plugin that has done all the work for you-- I've used this one and like it:

http://plugins.learningjquery.com/cluetip/demo/
__________________
Fumigator is offline   Reply With Quote
Reply

Bookmarks

Tags
jquery

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 10:08 PM.


Advertisement
Log in to turn off these ads.