<! Doctype HTML>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
<Title> jquery slide drop-down menu </title>
<SCRIPT type = "text/JavaScript" src = "/ajaxjs/jquery-1.6.2.min.js"> </SCRIPT>
<SCRIPT type = "text/JavaScript">
$ (Document). Ready (function (){
Function getspeed () {return $ ('input [type = radio] [name = speed]: checked'). Val ();};
$ ('. Item'). Hover (function (){
$ ('. Subitem', This). Show (getspeed ());
}, Function (){
$ ('. Subitem', This). Hide (getspeed ());
});
});
</SCRIPT>
<Style type = "text/CSS">
* {Padding: 0; margin: 0; font-family: "trebuchet ms", Arial, Helvetica, sans-serif; font-size: 12px ;}
HTML, body {background-color: # 2f2f2f; color: # eaeaea ;}
IMG {border: none ;}
. Center {width: 400px; margin-left: auto; margin-Right: auto ;}
. Centertext {text-align: center ;}
A {color: # baee00; text-Decoration: none ;}
A: link {color: # baee00 ;}
A: visited {color: # baee00 ;}
A: hover {color: # baee00; text-Decoration: underline ;}
A: active {color: # baee00 ;}
. Center,. Item {width: 200px ;}
. Item,. Title {width: auto; padding: 4px; Background-color: #252525; margin: 2px 0 2px 0 ;}
. Subitem {Height: 40px; line-Height: 40px; text-align: center ;}
Ul {list-style-type: none ;}
</Style>
</Head>
<Body>
<Div class = "center">
<Div class = "title"> select the menu Sliding Speed: </div>
<Ul>
<Li> <input name = "Speed" type = "radio" value = "slow" id = "slow"/> <label for = "slow"> slow </label> </LI>
<Li> <input name = "Speed" type = "radio" value = "normal" id = "normal" Checked = "checked"/> <label for = "normal"> general </label> </LI>
<Li> <input name = "Speed" type = "radio" value = "fast" id = "fast"/> <label for = "fast"> fast </label> </LI>
</Ul>
<Div class = "item">
01. <a href = "#" Title = "+ D 'infos"> international events </a>
<Div class = "subitem" style = "display: none;"> current news content: -<a href = "#" Title = "Care for design"> C4D </a> </div>
</Div>
<Div class = "item">
02. <a href = "#" Title = "+ D 'infos"> entertainment news </a>
<Div class = "subitem" style = "display: none;"> entertainment news content: -<a href = "#" Title = "Care for design"> C4D </a> </div>
</Div>
<Div class = "item">
03. <a href = "#" Title = "+ D 'infos"> Technology Information </a>
<Div class = "subitem" style = "display: none;"> Technology Information: -<a href = "#" Title = "Care for design"> C4D </a> </div>
</Div>
<Div class = "item">
04. <a href = "#" Title = "+ D 'infos"> sports events </a>
<Div class = "subitem" style = "display: none;"> Sports Events: -<a href = "#" Title = "Care for design"> C4D </a> </div>
</Div>
<Div class = "item">
05. <a href = "#" Title = "+ D 'infos"> auto fashion </a>
<Div class = "subitem" style = "display: none;"> Car fashion content: -<a href = "#" Title = "Care for design"> C4D </a> </div>
</Div>
</Div>
</Body>
</Html>