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 04-14-2009, 09:49 PM   PM User | #1
ryansax
New to the CF scene

 
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ryansax is an unknown quantity at this point
jQuery Unwanted yoyo effect on slideDown/slideUp

I am trying to make a menu that has a rollover which displays an image on top and is revaled sliding down from top to bottom. I want the rollover image to dissapear when rolled off the button by sliding back up.

This is where I have got so far:
http://exsiteinteractive.ca/yoyo/yoyo.html

Problem here is that when I rollover i am getting a yoyo effect but i want the hover image to stay down until rolled off the button.

Based my code around this:
http://www.webdesignerwall.com/demo/...ed-hover1.html
ryansax is offline   Reply With Quote
Old 04-15-2009, 04:32 AM   PM User | #2
Iszak
Regular Coder

 
Iszak's Avatar
 
Join Date: Jun 2007
Location: Perth, Western Australia
Posts: 332
Thanks: 2
Thanked 58 Times in 57 Posts
Iszak is an unknown quantity at this point
It's to do with your selectors, try this.
Code:
$(document).ready(function(){
  $('.menu li').hover(function(){
    $(this).children(':last').slideDown('slow');
  }, function(){
    $(this).children(':last').slideUp('slow');
  });
});
Iszak is offline   Reply With Quote
Reply

Bookmarks

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


Advertisement
Log in to turn off these ads.