Cascading Style Sheets Tutorial

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> 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • DotNetKicks
  • DZone

Tags: css display, css mouse style, Display

Releated Posts

  • CSS achieve dynamic display by the five-pointed star-level results
  • Using xml, xsl, css display data
  • CSS Case Analysis and Display Visibility different attributes
  • Display: inline-block attributes
  • CSS in IE and Nascape display differences

This entry was posted on Monday, January 28th, 2008 at 12:00 am and is filed under CSS Properties. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

« Xp css
Simple 2 column CSS layout »

Leave a Reply

  • Categories

    • CSS Properties (491)
    • CSS Tutorial (1154)
    • CSS Tutorial By Examples (1201)
    • Css+Div Web Design (3274)
    • Xhtml and Web Design (1797)
  • Archives

    • February 2008
    • January 2008
    • December 2007
    • November 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • April 2007
    • March 2007
    • February 2007
    • January 2007
  • Pages

    • About us

Cascading Style Sheets Tutorial