JavaScript gradient display yahoo China tab Effect code _ navigation menu

Source: Internet
Author: User
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <ptml xmlns=" http://www.w3.org/1999/xhtml "> <pead> <meta http-equiv=" Content-type "content=" text/html; charset=gb2312 "/> <title>y</title> <style type=" Text/css "> body {margin:0; Text-align:center; font-size:12px; }. Papanel, Pabd,. Paft,. patop {width:348px;} . papanel {background: #a5d0fd URL ("/article/upimages/pabg.gif") repeat-x; border-left:1px solid #7bbdff; border-right:1px solid #7bbdff; font-family:arial; }. pabd {clear:both; Overflow:hidden; Padding-bottom:. 35em; Background:url ("/article/upimages/patbg.gif") no-repeat top left; }. patop{height:25px; line-height:20px; Overflow:hidden; }/* Top rounded corner start/* PABDT {background:url ("/article/upimages/pabdr.gif") 0 0 no-repeat; width:350px; height:4px; Overflow:hidden; }. pabdb {background:url ("/article/upimages/pabdr.gif") 0-4px no-repeat; width:350px; height:3px; Overflow:hidden; }/* Top rounded corner end//tabwin {width:340px; margin:0 Auto; }. Tabwin. Tabtitle {margin:. 25em 0 0 0; padding:0; List-style:none; height:40px; }. Tabwin. Tabtitle Li {float:left; position:relative; width:112px; height:40px; line-height:40px; Text-align:center; }. Tabwin. Tabtitle Li a {display:block; width:109px; height:40px; //////Tabwin background start/*. tabcontent {position:relative; Clear:both; width:338px; margin:0 Auto; Background: #fff; border-left:1px solid #85c3ff; border-right:1px solid #5ca3e9; Display:block; }/* External small icon Start/* Tabwin. Icomailn {background:url ("/article/upimages/tabicmln.gif") 0 0 no-repeat; }. Tabwin. icomail {background:url ("/ARTICLE/UPIMAGES/TABICML.GIF ") 0 0 no-repeat; }. Tabwin. icoalb {background:url ("/article/upimages/tabicalb.gif") 0 0 no-repeat; }. Tabwin. Icomus {background:url ("/article/upimages/tabicmus.gif") 0 0 no-repeat; }. Tabwin. Icofin {background:url ("/article/upimages/tabicfin.gif") 0 0 no-repeat; }. Tabwin. icoalqq {background:url ("/article/upimages/tabicfin.gif") 0 0 no-repeat; } * * Normal/Tabwin tabwinnormal{Background:url ("/article/upimages/patabs1.gif") no-repeat; }/*1*/. Tabwin tabWinAtive1 {background:url ("/article/upimages/patabsa.gif") no-repeat; }/*2*/. Tabwin tabWinAtive2 {background:url ("/article/upimages/patabsb.gif") no-repeat; }/*3*/. Tabwin tabWinAtive3 {background:url ("/article/upimages/patabsc.gif") no-repeat; #patabs1 Strong, #patabs2 strong{color: #0062c5; font-size:13px; Margin-left:2em; }. Tabwin. none {height:150px; Text-align:center; Display:none; Filter:revealtrans (transition=22,duration=0.5) Blendtrans (duration=0.5) Alpha (opacity=97) progid:DXImageTransform.Microsoft.Gradient (gradienttype=0,startcolorstr= #FFFFFF, endcolorstr= #EBF0F4); } </style> <script language= "JavaScript" > var waitinterval; var mousedelaytime = 200; /* Options window/function Tabwinmouseover (tabwinobj,tabwintotal,obj) {window.cleartimeout (waitinterval); Waitinterval=window.settimeout ("ChangeDiv3" ("+tabwinobj+", "+tabwintotal+", "+obj.id+") ", Mousedelaytime)} function ChangeDiv3 (tabwinobj,tabwintotal,obj) {var n,itemnum; for (Var i=1;i<tabwintotal+1;i++) {if (tabwinobj+ "_title" +i = = obj.id) {Itemnum = I document.getElementById (tabwinobj+ "_content" +i). ClassName = "block"; TransitionEffect (tabwinobj+ "_content" +i, ' X ', 1); }else{//document.getelementbyid (tabwinobj+ "_content" +i). ClassName = "None"; TransitionEffect (tabwinobj+ "_content" +i, ' X ', 0); } var tabPatabs1 = document.getElementById ("PATABS1"); var TABPATABS2 = document.getElementById ("PATABS2"); if (tabpatabs1!=null && tabpatabs2!=null) {if (Itemnum >= 4) {n = itemNum-3;} Else{n = Itemnum}; if (Itemnum < 4) {tabpatabs1.classname = "tabtitle tabwinative" +n; Tabpatabs2.classname = "Tabtitle tabwinnormal"; }else{tabpatabs1.classname = "Tabtitle tabwinnormal"; Tabpatabs2.classname = "Tabtitle tabwinative" +n; }} function Tabmouseout () {window.cleartimeout (waitinterval); * * Transition effect/function TransitionEffect (divid,cur,dotype) {var display = (Dotype = 1)? " Block ": none"; if (($ (divid)!= null)) {if (Cur!= ' x ') {$ (divid). Filters.revealTrans.Transition = cur;$ (divID). Filters.revealTrans.apply (); $ (divid). style.display = display; $ (divid). Filters.revealTrans.play ();} else{$ (divid). filters.blendTrans.apply(); $ (divid). style.display = display; $ (divid). Filters.blendTrans.play (); function $ () {var elements = new Array (); for (var i = 0; i < arguments.length; i++) {var element = Arguments[i];if (t ypeof element = = ' String ') {if (document.getElementById (element)) {element = document.getElementById (element);} Else{element = Document.getelementsbyname (element);} if (arguments.length = = 1) {return element;}} Elements.push (element);} return elements;}; </script> </pead> <body> <div class= "PABDT" > </div> <div class= "Papanel" > <d IV class= "PABD" > <div class= "patop" > <strong> </strong> </div> <!--tab start--> <div class= "Tabwin" > <ul class= "tabtitle tabwinnormal" id= "PATABS1" > <li id= "Tabwin_ti" Tle1 "onmouseover=" tabwinmouseover (' Tabwin ', 6,this); "onmouseout=" tabmouseout (); " > <strong> film </strong></li> <li id= "Tabwin_title2" onmouseover= "TabwinmoUseover (' Tabwin ', 6,this); "onmouseout=" tabmouseout (); " > <strong> TV series </strong></li> <li id= "Tabwin_title3" onmouseover= "Tabwinmouseover" (' Tabwin ', 6,this); "onmouseout=" tabmouseout (); > <strong> Sports program </strong></li> </ul> <div class= "Tabcontent" > <di V id= "Tabwin_content1" class= "None" > </div> <div id= "Tabwin_content2" class= "None" > 222 </d iv> <div id= "Tabwin_content3" class= "None" > 333 </div> </div> </div> <!--tab END--> <!--tab start--> <div class= "Tabwin" > <ul class= "Tabtitle tabwinnormal" Id= "PATABS2" > <li id= "tabwin_title4" onmouseover= "Tabwinmouseover" (' Tabwin ', 6,this); "Onmouseout=" TabMouseO UT (); " > <strong> Online Games </strong></li> <li id= "Tabwin_title5" onmouseover= tabwinmouseover (' Tabwin ') , 6,this); "onmouseout=" tabmouseout (); > <stRong> Single game </strong></li> <li id= "Tabwin_title6" onmouseover= "tabwinmouseover (' Tabwin ', 6,this);" Onmouseout= "Tabmouseout ();" > <strong> Mobile Games </strong></li> </ul> <div class= "Tabcontent" > <di V id= "Tabwin_content4" class= "None" > Ddesse </div> <div id= "tabwin_content5" class= "None" > 555 ;/div> <div id= "Tabwin_content6" class= "None" > 666 </div> </div> </div> <!--tab End--> </div> </div> <div class= "pabdb" > </div> </body> </ptml&gt ;
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]

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.