Hover out
Hover out
Hello,
my name is siggi. I am from Germany and i create websites using drupal6, which includes jQuery.
Now i want to start using jQuery for some theming-issues.
So i started with a simple example: The logo should be hidden and when i hover-in to a link in the left side-bar it should appear, but should be hidden again, if i hover-out.
So i wrote this lines of code:
-
$(document).ready(function() {
//Logo verstecken
$('a#logo').hide();
//Beim hovern einblenden
$('ul.menu li a').hover(function() {
$('a#logo').show('slow');
},function() {
$('a#logo').hide('slow');
});
});
But what happens is, that, when i hover, the logo begins to "hopp", it hides, it appears, it hides, it appears and so on.
Can anyone tell me my mistake?
Edit: btw. you can have a look at
http://version4.metaletics.com to see what i mean