Customizable Sliding Speed slide menu

Source: Internet
Author: User

<! 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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.