Css create classic mouse trigger Display Options
<DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.0 Transitional / / EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html Xmlns=" http://www.w3.org/1999/xhtml ">
<head>
<meta Http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta Http-equiv="Content-Language" content="zh-CN" />
<title> Css create mouse trigger effect </ title>
<meta Content="all" name="robots" />
<meta Name="author" content=" yyt_by@163.com,huanghai,www.hppd.cn勿ƒ…制作" />
<meta Name="copyright" content="hppd" />
<meta Name="description" content="hppd,prettydog,honeypig,web设计,交互设计, prettydog" />
<meta Name="keywords" content="f2blog,phpblog,blog,php,xhtml,css,design,w3c,w3,w3cn,hppd,prettydog,honeypig,web设计,交互设计, prettydog" />
<style Type="text/css">
<! –
Body (
Margin: 0;
Padding: 0;
Color: # 000;
Font-size: 12px;
Line-height: 160%;
Text-align: left;
Height: 100%;
Font-family: '10 lines', Tahoma, arial, verdana, sans-serif,' Lucida Grande ',' Lucida Sans Unicode ';
)
* (Margin: 0; padding: 0;)
H2, h2 a: link, h2 a: hover, h2 a: visited (
Font-size: 14px;
Text-decoration: none;
Color: # 000000;
)
. Kw_from (
Padding: 20px 0 0 0px;
Margin: auto;
Height: 300px;
Overflow: hidden;
Width: 650px;
)
. Kw_from. Sbtn (
Float: left;
Width: 80px;
Padding: 16px 0 0 0;
)
. Kw_from. SearchMore (
Float: left;
Width: 80px;
Padding: 4px;
)
(# SearchNav
Width: 430px;
Float: left;
)
Conter1 searchNav # # # # conter3 (searchNav
Float: left;
Width: 250px;
)
Conter2 searchNav # # # # conter4 (searchNav
Float: left;
Width: 180px;
)
# SearchNav ul (
Padding: 0;
Margin: 0;
List-style: none;
)
# SearchNav li (
Float: left;
)
# SearchNav li ul (
Display: none;
Top: 20px;
)
# SearchNav li: hover ul, # searchNav li.over ul (
Display: block;
Float: left;
)
# SearchNav ul li a (
Float: left;
Display: block;
Font-size: 12px;
Padding: 3px;
Text-decoration: none;
Color: # 777;
)
# SearchNav ul li a: hover (
Background-color: # f4f4f4;
)
# # JobKw (searchNav
Width: 220px;
Height: 18px;
)
# # CityKw (searchNav
Width: 130px;
Height: 18px;
)
–>
</ Style>
<script Type="text/javascript">
<!–//–><![ CDATA [/ />
<! –
StartList = function () (
If (document.all & document.getElementById) (
NavRoot = document.getElementById ( "searchNav");
For (i = 0; i <navRoot.childNodes.length; i + +) (
Node = navRoot.childNodes [i];
If (node.nodeName == "LI") (
Node.onmouseover = function () (
This.className + = "over";
)
Node.onmouseout = function () (
This.className = this.className.replace ( "over", "");
)
)
)
)
)
Window.onload = startList;
//–><!]]>
</ Script>
</ Head>
<body>
<div Class="kw_from">
<form Action="/search.html" method="get" name="searchForm" id="searchForm" onsubmit="return check()">
<ul Id="searchNav">
<li Id="conter1"> <h2> find what </ h2>
<input Id="jobKw" name="jobKw" type="text" />
<ul Id="conter3">
<li> <a Href="#"> accounting </ a> </ li>
<li> <a Href="#"> Web Design </ a> </ li>
<li> <a Href="#"> translation </ a> </ li>
<li> <a Href="#"> tutor </ a> </ li>
<li> <span Class="moreCity"> <a href="#"> more>> </ a> </ span> </ li>
</ Ul>
</ Li>
<li Id="conter2"> <h2> where </ h2>
<input Id="cityKw" name="cityKw" type="text" />
<ul Id="conter4">
<li> <a Href="#"> Beijing </ a> </ li>
<li> <a Href="#"> Shanghai </ a> </ li>
<li> <a Href="#"> Guangzhou </ a> </ li>
<li> <a Href="#"> Shenzhen </ a> </ li>
<li> <a Href="#"> Nanjing </ a> </ li>
<li> <a Href="#"> Tianjin </ a> </ li>
<li> <a Href="#"> Hangzhou </ a> </ li>
<li> <a Href="#"> Chengdu </ a> </ li>
<li> <a Href="#"> Chongqing </ a> </ li>
<li> <a Href="#"> Wuhan </ a> </ li>
<li> <a Href="#"> Xi'an </ a> </ li>
<li> <a Href="#"> Shenyang </ a> </ li>
<li> <span Class="moreCity"> <a href="#"> more cities>> </ a> </ span> </ li>
</ Ul>
</ Li>
</ Ul>
<div Class="sbtn">
<input Name="submit" type="submit" class="btn4" style="margin:0px 15px 2px 0;" value="æœç´¢å·¥ä½œ" />
</ Div>
<div Class="searchMore">
<a Href="search_expert.html"> Advanced Search </ a> <br /> <a href="search_sort.html"> classification search </ a> </ div>
</ Form>
</ Div>
</ Body>
</ Html>
Tags: css display, css mouse style, Display






Leave a Reply