[jQuery] Hover function bug.
Hello,
Here is the code :
------------------------------------------------
code----------------------------------------------
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("div#menu ul ul li").hover( /* Fonction permettant de r�v�ler le
menu par un hover : fonction 1 : mousein - fonction 2 : mouseout */
function () {
$(this).children().slideDown("fast");},
function () {
$(this).children().children().slideUp("fast");});
$("div#menu ul ul ul li").hover( /* Fonction permettant de r�v�ler
le menu par un hover : fonction 1 : mousein - fonction 2 : mouseout */
function () {
$(this).children().slideDown("fast");},
function () {
$(this).children().children().slideUp("fast");});
});
</script>
<style type="text/css">
/**************** menu coding *****************/
#menu {
width: 12em;
background: #eee;
}
#menu ul {
list-style: none;
margin: 0;
padding: 0;
}
#menu a, #menu h2 {
font: bold 11px/16px arial, helvetica, sans-serif;
display: block;
border-width: 1px;
border-style: solid;
border-color: #ccc #888 #555 #bbb;
margin: 0;
padding: 2px 3px;
}
#menu h2 {
color: #fff;
background: #000;
text-transform: uppercase;
}
#menu a {
color: #000;
background: #efefef;
text-decoration: none;
}
#menu a:hover {
color: #a00;
background: #fff;
}
#menu li {
position: relative;
}
#menu ul ul ul {
position: absolute;
top: 0;
left: 100%;
width: 100%;
}
</style>
</head><body>
<div id="menu">
<ul>
<li><h2>Menu Title</h2>
<ul>
<li><a href="" title="Submenu Title">Submenu Title</a></li>
<li><a href="" title="Menu">Menu</a>
<ul style="display: none;">
<li><a href="">Submenu1</a><!-- link to seo vertical tut --