| The code is as follows: |
Copy code |
<Title> a css sliding menu with excellent compatibility </title> <Style type = text/css media = screen> <! -- * {Font-size: 12px ;} Ul {list-style-type: none; margin: 0px ;} . Ttl {height: 18px ;} . Ctt {height: auto; padding: 6px; clear: both} . W936 {width: 100%; margin: 2px 0; clear: both; border: 1px solid skyblue} /* Tab switching effect */ . Tb _ {background-color: # e6f2ff; background-image: url ('yun _ qi_img/glossyback.gif '); background-repeat: repeat-x ;} . Tb _ ul {height: 24px ;} . Tb _ li {float: left; height: 24px; padding-top: 6px; width: 94px; cursor: pointer ;} . Normaltab {background-image: url ('yun _ qi_img/glossyback.gif '); background-repeat: no-repeat; color: #1f3a87 ;} . Hovertab {background-image: url ('yun _ qi_img/glossyback2.gif '); color: #1f3a87; font-weight: bold} . Dis {display: block ;} . Undis {display: none ;} --> </Style> <Script language = webpage special effect type = text/javascript> <! -- Function g (o) {return document. getelementbyid (o );} Function hoverli (n ){ // N tags, I <= n; ; For (var I = 1; I <= 4; I ++) {g ('TB _ '+ I ). classname = 'normaltab'; g ('tbc _ 0' + I ). classname = 'undis ';} g ('tbc _ 0' + n ). classname = 'dis '; g ('TB _' + n ). classname = 'hovertab '; } // --> </Script> <Div class = w936> <Div class = tb _ id = tb _> <Ul> <Li class = hovertab id = tb_1 onmouseo tutorial ver = xgz: hoverli (1);> 111cn.net </li> <Li class = normaltab id = tb_2 onmouseover = xgz: hoverli (2);> webpage effect </li> <Li class = normaltab id = tb_3 onmouseover = xgz: hoverli (3);> Source Code Download </li> <Li class = normaltab id = tb_4 onmouseover = xgz: hoverli (4);> material resources </li> </Ul> </div> <Div class = ctt> <Div class = dis id = tbc_01> <a href = "http: //"> Webpage. Special effect </a> <A href = "http: //"> source code. Download </a> <A href = "#"> seo. Optimization </a> <A href = "#"> Free. Space </a> <A href = "http: //"> exchange. Link </a> </div> <Div class = undis id = tbc_02> <a href = "#" title = ""> menu navigation effect </a> <A href = "#" title = ""> layer style effects </a> <A href = "#" title = ""> Link text effects </a> <A href = "#" title = ""> Image effects </a> <A href = "#" title = ""> mouse effect. Code </a> <A href = "#" title = ""> page window effects </a> <A href = "#" title = ""> webpage background effects </a> <A href = "#" title = ""> special date and time effects </a> </div> <Div class = undis id = tbc_03> <a href = "http: //" title = ""> Download Taobao source code </a> <A href = "http: //" title = ""> cms system source code </a> <A href = "http: //" title = ""> seo tool software </a> </div> <Div class = undis id = tbc_04> <a href = "http://links.111cn.net/"> Link Exchange platform </a> <A href = "#/"> Free. Space </a> <A href = "#/"> transparent flash </a> </Div> <P align = "center"> This special effect is collected on the Internet by <a href = "#" target = "_ blank"> for interest and learning, it is not used for commercial purposes. </P> |
Instance code 2
| The code is as follows: |
Copy code |
| <Html> <Head> <Title> implementation of a simple css sliding menu </title> <Style type = "text/css"> * {Font-size: 9pt ;} Ul li {list-style: none ;} Ul, li {margin: 0; padding: 0 ;} . Tabs ,. tabs_act {float: left; width: 103px; border-bottom: 1px solid # ccc; border-right: 1px solid # ccc; height: 25px; text-align: center; line-height: 25px; display: block ;} . Tabs_act {font-weight: bold; color: # fc7404; border-bottom: 1px solid # fff; background-image: url (yun_qi_img/bgoff4.gif )} . Sliding_tab {width: 513px; border-left: 1px solid # ccc; height: 27px ;} . Sliding_tab li {float: left; border-top: 1px solid # ccc ;} . Sliding_tab li. table_li {border-bottom: 1px solid # ccc; border-top: 0px; width: 305px; height: 26px; line-height: 26px ;} . Tablist {clear: both; width: 513px; border: 1px solid # ccc; border-top: 0px; height: 300px; overflow: hidden ;} </Style> <Script language = javascript type = text/javascript> Function g (o) {return document. getelementbyid (o );} Function hovertab (num, counts, tabname, tabclass ){ For (I = 1; I <= counts; I ++ ){ G (tabname + 'tab0' + I). classname = tabclass + 'tab0 '; G (tabname + 'div0' + I). style. display = 'none '; } G (tabname + 'tab0' + num). classname = tabclass + 'tabs _ AC '; G (tabname + 'div0' + num). style. display = 'block '; } </Script> </Head> <Body> <Div style = "width: 513px; float: left; clear: both;"> <Div class = "sliding_tab"> <Ul> <Li> <a class = tabs_act id = set_tab01 onmouseover = "hovertab ('1', '2', 'set _',''); "href =" # "> 111cn.net </a> </li> <Li> <a class = tabs id = set_tab02 onmouseover = "hovertab ('2', '2', 'set _',''); "href =" # "> Special webpage effects </a> </li> <Li class = "table_li"> </li> </Ul> </Div> <Div class = tablist id = set_div01> <Li> <a href = "http://www.111cn.net/html/txdm/"> Webpage. Special effect </a> </li> <Li> <a href = "http://www.111cn.net/html/seo/"> seo. Optimization </a> </li> <Li> <a href = "http://download.111cn.net/"> source code. Download </a> </li> <Li> <a href = "http://www.111cn.net/html/mfkj/"> Free. Space </a> </li> <Li> <a href = "http://links.111cn.net/"> exchange. Link </a> </li> <Li> <a href = "http://www.111cn.net/seotools/"> indexing. Query </a> </li> <Li> <a href = "http://shop.111cn.net/"> Xinqing Taobao station </a> </li> <Li> <a href = "http://changshi.111cn.net/"> Life Common Knowledge Network </a> </li> </Div> <Div class = tablist id = set_div02 style = "display: none"> <Li> <a href = "http://www.111cn.net/html/txdm/cddh/" title = ""> menu navigation effects </a> </li> <Li> <a href = "http://www.111cn.net/html/txdm/tcys/" title = ""> layer style effects </a> </li> <Li> <a href = "http://www.111cn.net/html/txdm/ljwb/" title = ""> Link text effects </a> </li> <Li> <a href = "http://www.111cn.net/html/txdm/txtx/" title = ""> graphic image effects </a> </li> <Li> <a href = "http://www.111cn.net/html/txdm/sbtx/" title = ""> mouse effects. Code </a> </li> <Li> <a href = "http://www.111cn.net/html/txdm/ymck/" title = ""> page window effects </a> </li> <Li> <a href = "http://www.111cn.net/html/txdm/wybj/" title = ""> webpage background effects </a> </li> <Li> <a href = "http://www.111cn.net/html/txdm/rqsj/" title = ""> date and time effects </a> </li> <Li> <a href = "http://www.111cn.net/html/txdm/ymss/" title = ""> page search effects </a> </li> <Li> <a href = "http://www.111cn.net/html/txdm/bgtx/" title = ""> table form effects </a> </li> <Li> <a href = "http://www.111cn.net/html/txdm/qtdm/" title = ""> Other webpage effects </a> </li> </Div> </Div> </Body> </Html> |
<P align = "center"> This special effect is collected on the Internet by <a href = "http://www.111cn.net"> Xinqing webpage special effect </a> 2017111cn.net, only for interest and learning communication, it is not used for commercial purposes. </P>
The article by the core clear Web effects | 111cn.net collection (www.111cn.net) detailed reference: http://www.111cn.net/html/txdm/cddh/2296.htm