Pure CSS pop-up layer, city switch effect, css pop-up layer switch
<! Doctype html public "-// W3C // dtd html 4.01 Transitional // EN" "http://www.w3.org/TR/html4/loose.dtd">
<Html>
<Head>
<Title> Effect of pure CSS pop-up layer </title>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8">
</Head>
<Style type = "text/css">
. F_l {float: left ;}
. F_r {float: right ;}
. City {height: 60px; padding-left: 10px; text-align: center ;}
. City_now {width: 60px; padding-top: 20px; color: #595756; font-size: 16px; letter-spacing: 3px; font-weight: bold ;}
. City_box {text-align: center ;}
. City_box span {vertical-align: bottom ;}
. City_nav {text-align: center; height: 18px; line-height: 18px; color: #333; cursor: pointer; overflow: hidden; display: inline-block ;}
. City_hover {color: # f25000; height: 18px; line-height: 18px; overflow: hidden ;}
. City_link {background: # FFFFFF; border: # f25000 2px solid; width: 305px; display: none; z-index: 9999 ;}
. City_hovers {display: block; position: absolute ;}
. City_links {width: 60px; margin-right: 1px; height: 30px; line-height: 30px; font-size: 13px; text-align: center; background: # f6f6f6; vertical-align: top; margin-bottom: 1px; display: inline-block ;}
. City_show {background: # ccc; height: 18px; line-height: 18px; padding: 5px; cursor: pointer ;}
</Style>
<Body>
<Div class = "city f_l">
<Div class = "city_now"> Beijing </div>
<Div class = "city_swich">
<Span class = "city_nav" id = "city_nav" onclick = "this. className = 'city _ nav city_hover '; document. getElementById ('city _ link '). className = 'city _ link city_hovers' "> [Switch city] </span> </div> <!
-- Onmouseover =/vs/onclick = -->
<Div id = "city_link" class = "city_link">
<Div class = "city_show"> <span class = "f_red f_r" href = "javascript:;" title = "Close Window" onclick = "document. getElementById ('city _ nav '). className = 'city _ nav'; document. getElementById
('City _ link'). className = 'city _ link'; return! 1; "> [disable] </span> <span class =" f_l f_red "> <a href =" {$ EXT [wap_url]} "target =" _ blank "> welcome! </A> </span> </div>
<A class = "city_links"
Href = "#" onclick = "M. goExpr ('city _ eelou_id ', '0'); return false; "> nationwide </a> <a class =" city_links "href =" # "onclick =" M. goExpr ('city _ eelou_id ', '1'); return false; "> Beijing </a> <a class =" city_links"
Href = "#" onclick = "M. goExpr ('city _ eelou_id ', '2'); return false; "> Shanghai </a> <a class =" city_links "href =" # "onclick =" M. goExpr ('city _ eelou_id ', '3'); return false; "> Shenzhen </a> <a class =" city_links"
Href = "#" onclick = "M. goExpr ('city _ eelou_id ', '4'); return false; "> Guangzhou </a> <a class =" city_links "href =" # "onclick =" M. goExpr ('city _ eelou_id ', '5'); return false; "> Xi'an </a> <a class =" city_links"
Href = "#" onclick = "M. goExpr ('city _ eelou_id ', '6'); return false; "> Hangzhou </a> <a class =" city_links "href =" # "onclick =" M. goExpr ('city _ eelou_id ', '7'); return false; "> Changsha </a> <a class =" city_links"
Href = "#" onclick = "M. goExpr ('city _ eelou_id ', '8'); return false; "> Chongqing </a> <a class =" city_links "href =" # "onclick =" M. goExpr ('city _ eelou_id ', '9'); return false; "> Ningbo </a> <a class =" city_links"
Href = "#" onclick = "M. goExpr ('city _ eelou_id ', '10'); return false; "> Chengdu </a> <a class =" city_links "href =" # "onclick =" M. goExpr ('city _ eelou_id ', '11'); return false; "> Qingdao </a> <
Class = "city_links" href = "#" onclick = "M. goExpr ('city _ eelou_id ', '12'); return false; "> Nanjing </a> <a class =" city_links "href =" # "onclick =" M. goExpr ('city _ eelou_id ', '13'); return false; "> Kunming
</A> <a class = "city_links" href = "#" onclick = "M. goExpr ('city _ eelou_id ', '14'); return false; "> Wuhan </a> <a class =" city_links "href =" # "onclick =" M. goExpr ('city _ eelou_id ', '15'); return false; "> day
Jin </a> <a class = "city_links" href = "#" onclick = "M. goExpr ('city _ eelou_id ', '16'); return false; "> Hefei </a> <a class =" city_links "href =" # "onclick =" M. goExpr ('city _ eelou_id ', '17'); return false; ">
Zhengzhou </a> <a class = "city_links" href = "#" onclick = "M. goExpr ('city _ eelou_id ', '18'); return false; "> Shenyang </a> <a class =" city_links "href =" # "onclick =" M. goExpr ('city _ eelou_id ', '19'); return
False; "> Dalian </a> <a class =" city_links "href =" # "onclick =" M. goExpr ('city _ eelou_id ', '20'); return false; "> Fuzhou </a> <a class =" city_links "href =" # "onclick =" M. goExpr
('City _ eelou_id ', '21'); return false; "> Suzhou </a> <span class =" city_links ">
</Span> <span class = "city_links"> </span> <span class = "city_links"> </span>
</Div>
</Div>
<Div> <A href = "http://www.999jiujiu.com/"> http://www.999jiujiu.com/</A> </div>
</Body>
</Html>