中文(繁体)
網頁特效程式碼,仿雅虎右側的選單代碼特效
<HTML><HEAD><TITLE>仿雅虎選單</TITLE> <META http-equiv=Content-Type content="text/html; charset=gb2312"> < STYLE type=text/css>BODY { MARGIN: 6px 0px; FONT: 12px 宋; FLOAT: right; WIDTH: 280px } .divArea3Box { BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #cccccc 1px solid; MARGIN-TOP: 2px; PAOMINGLEFT : 2px; PADDING-BOTTOM: 2px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 100%; LINE-HEIGHT: 120px; PADDING-TOP: 2px; BORDER-BOTTOM: #cccccccc 1px solccccid; ALIGN: center } A { COLOR: #999999; TEXT-DECORATION: none } .tabWin { WIDTH: 371px; HEIGHT: 230px } .tabWin { BORDER-RIGHT: #cccccccc 1px solid; BORDER-solid; BORDER-RIGHT: #cccccccc : inline; FLOAT: left; MARGIN: 0px 3px; OVERFLOW: hidden; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid } .crblcc #cccccc 1px solid; DISPLAY: inline; FLOAT: left; MARGIN: 0px 3px; OVERFLOW: hidden; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #ccicc 1px solid . ; WIDTH: 361px; HEIGHT: 220px } .tabWinLine1 { WIDTH: 360px; HEIGHT: 29px } .tabWinLine2 { DISPLAY: block } .tabWinLine4 { DISPLAY: none } . : 360px; HEIGHT: 1px } .tabWinLine2 DIV { FLOAT: left; WIDTH: 118px; HEIGHT: 1px; BACKGROUND-COLOR: #cccccc } tabWinLine4 DIV { FLOAT: leftUND-CD: #cccccc } .tabWinLine1 .sepa { BACKGROUND-IMAGE: url(images/0.gif); WIDTH: 3px } .tabWinLine2 .sepa { BACKGROUND-IMAGE: url(images/0.gif); WIDTH: 3px } .tabWinLine4 . BACKGROUND-IMAGE: url(images/0.gif); WIDTH: 3px } .tabWinLine2 .tabWinLine3 { BACKGROUND-REPEAT: no-repeat; BACKGROUND-COLOR: #ffROff } tabWinLine4 tabWinLine. COLOR: #ffffff } .tabWinLine1 DIV { FONT-WEIGHT: bold; FLOAT: left; BACKGROUND-IMAGE: url(images/c21_1.gif); WIDTH: 118px; CURSOR: pointer1_1.gif); WIDTH: 118px; CURSOR: pointer; COLOR: #1f-a87; ; HEIGHT: 26px } .tabWinLine1 .tabWinTitle { BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BACKGROUND-IMAGE: url(images/0.gif); BORDER-LE: #cc WIDTH: 116px; COLOR: #b10000; HEIGHT: 28px; BACKGROUND-COLOR: white } .tabWinInnerBox .showblock { BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 3-pOM ; MARGIN: 0px 0px 3px; TEXT-ALIGN: left } .tabWinInnerBox .hiddenblock { BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 3px; PADDING-LEFT: 7px; PADDING-BOTTOM: 8px; MARGIN: 0px 0 LEFT: #cccccc 1px solid; WIDTH: 348px; PADDING-TOP: 9px; BORDER-BOTTOM: #cccccc 1px solid; HEIGHT: 143px; BACKGROUND-COLOR: #ffffffff; HEIGHT: 143px; BACKGROUND-COLOR: #ffffff;; .showblock { DISPLAY: block } .divTab2 { DISPLAY: inline; FLOAT: left; MARGIN: 0px 3px; OVERFLOW: hidden; WIDTH: auto; HEIGHT: 232px } .divTab2 .T-Title FOpx; HEIGHT: 24px } .divTab2 .normal { BACKGROUND-IMAGE: url(images/mtitle2.gif); COLOR: #1f3a87 } .divTab2 .active { FONT-WEIGHT: bold; BACKGROUND-IMAGE: url(ges/gifm ; COLOR: #1f3a87 } .divTab2 .TabTitle .sepa { BACKGROUND-IMAGE: url(images/speabg.ordergif); WIDTH: 1px } .divTab2 .TabTitle .bUND-BACKGROROROd-IMAGE: RO(url/gifg); WIDTH: 1px } .divTab2 .TabTitle DIV { FLOAT: left; WIDTH: 92px; CURSOR: pointer; LINE-HEIGHT: 21px; PADDING-TOP: 3px; HEIGHT: 21px } show solid; PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; OVERFLOW: hidden; BORDER-LEFT: #064ca1 1px solid; WIDTH: 278px; PADDING - solid; HEIGHT: 198px; TEXT-ALIGN: left } .divTab2 .hiddenblock { BORDER-RIGHT: #064ca1 1px solid; PADDING-RIGHT: 0px; PADDING-LEFT: 0px solid; PADDING-RIGHT: 0px; PADDING-LEFT: 0px 表; PA LEFT: #064ca1 1px solid; WIDTH: 278px; PADDING-TOP: 9px; BORDER-BOTTOM: #064ca1 1px solid; HEIGHT: 198px; TEXT-ALIGN: left } </STYLE <Rh; mouseDelayTime = 200; /*選項窗*/ function tabWinMouseOver(tabWinObj,tabWinTotal,obj) { window.clearTimeout(waitInterval); waitInterval=window.setTimeToout("ChangeDiv3('""+tab" obj.id+")",mouseDelayTime) } function ChangeDiv3(tabWinObj,tabWinTotal,obj) { var itemNum; for(var i=0;i<tabWinTotal;i++) { if (tabWinObj+"_Title"+i == obj. ) { itemNum = i; document.getElementById(tabWinObj+"_Title"+i).className = "tabWinTitle"; document.getElementById(tabWinObj+"_Line"+i).className = "tabWinLine3"; document. +i).className = "showblock"; }else{ var divID = document.getElementById(tabWinObj+"_Title"+i); if (divID != null){divID.className = "";} var ContentDiv = document.getElementById.className = "";} var ContentDiv = document.getElementById. (tabWinObj+"_Content"+i); if(ContentDiv!=null){ContentDiv.className = "hiddenblock";} var BDiv = document.getElementById(tabWinObj+"_Line"+i); if(BDiv!=null){BDiv!=null){BDiv! .className="";} } } var tabWinImg1 = document.getElementById(tabWinObj+"_Img1"); var tabWinImg2 = document.getElementById(tabWinObj+"_Img2"); if(WinWinImg1!=null &tabWinObj+"_Img2"); if(WinWinImg1! itemNum < 4) { tabWinImg1.className = "tabWinLine2"; tabWinImg2.className = "tabWinLine4"; }else{ tabWinImg1.className = "tabWinLine4"; tabWinImg2.className = "tabWinLine2"; } /unction* tabMouseOver(tabObj,tabTotal,obj) { window.clearTimeout(waitInterval); waitInterval=window.setTimeout("changeTabDiv('"+tabObj+"',"+tabTotal+","+obj.id+")",mouseDelayTime) } changeTabDiv(tabObj,tabTotal,obj){ for(i=0; i <tabTotal; i++) { if (tabObj+"_Title"+i == obj.id) { document.getElementById(tabObj+"_Title"+i).className = "active"; document.getElementById(tabObj+"_Content"+i).className = "showblock"; }else{ document.getElementById(tabObj+"_Title"+i).className = "normal"; document.getElementById(tabObjjj+" _Content"+i).className = "hiddenblock"; } } } function tabMouseOut(){window.clearTimeout(waitInterval);} </SCRIPT> <META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD> <BODY> <DIV class=divArea3> <DIV class=divAreaCol1><!-- 選項窗開始--> <DIV class=tabWin id=tabWin> <DIV class=tabWinInnerBox> <DIV class=tabWinLine1> <DIV class= tabWinTitle id=tabWin_Title1 onmouseover="tabWinMouseOver('tabWin',7,this);" onmouseout=tabMouseOut();><A class=a4 href="javascript:void(0);">熱點概念股</A> </DIV> <DIV class=sepa></DIV> <DIV id=tabWin_Title2 onMouseOver="tabWinMouseOver('tabWin',7,this);" onmouseout=tabMouseOut();><A class=a4 href="javascript :void(0);">資料分析</A></DIV> <DIV class=sepa></DIV> <DIV id=tabWin_Title3 onMouseOver="tabWinMouseOver('tabWin',7,this);" onmouseout= tabMouseOut();><A class=a4 href="javascript:void(0);">權證市場</A> </DIV></DIV> <DIV class=tabWinLine2 id=tabWin_Img1> <DIV class=tabWinLine3 id=tabWin_Line1><IMG height=1 alt="" src="" width=1></DIV> <DIV class=sepa><IMG height=1 alt="" src="" width=1></ DIV> <DIV id=tabWin_Line2><IMG height=1 alt="" src="" width=1></DIV> <DIV class=sepa><IMG height=1 alt="" src="" width= 1></DIV> <DIV id=tabWin_Line3><IMG height=1 alt="" src="" width=1></DIV></DIV> <DIV class=showblock id=tabWin_Content1>ff </DIV > <DIV class=hiddenblock id=tabWin_Content2>ff </DIV> <DIV class=hiddenblock id=tabWin_Content3>ff </DIV> <DIV class=tabWinLine1> <DIV id=tabWin_Title4 onMouseOver="tabMo,Over( ,this);" onmouseout=tabMouseOut();><A class=a4 href="javascript:void(0);">研究報告</A></DIV> <DIV class=sepa></DIV> < DIV id=tabWin_Title5 onMouseOver="tabWinMouseOver('tabWin',7,this);" onmouseout=tabMouseOut();><A class=a4 href="javascript:void(0);">名家專欄</A>< /DIV> <DIV class=sepa></DIV> <DIV id=tabWin_Title6 onMouseOver="tabWinMouseOver('tabWin',7,this);" onmouseout=tabMouseOut();><A class=a4 href="javascript: void(0);">機構觀點</A></DIV></DIV> <DIV class=tabWinLine4 id=tabWin_Img2> <DIV id=tabWin_Line4><IMG height=1 alt="" src="" width =1></DIV> <DIV class=sepa><IMG height=1 alt="" src="" width=1></DIV> <DIV id=tabWin_Line5><IMG height=1 alt="" src ="" width=1></DIV> <DIV class=sepa><IMG height=1 alt="" src="" width=1></DIV> <DIV id=tabWin_Line6><IMG height=1 alt ="" src="" width=1></DIV></DIV> <DIV class=hiddenblock id=tabWin_Content4>fffsdafdsa </DIV> <DIV class=hiddenblock id=tabWin_Content5>ff safasf</DIV> <DIV class=hiddenblock id=tabWin_Content6>ggfdsafasdfsdafads </DIV></DIV></DIV><!-- 選項窗結束--></DIV> </DIV> </BODY></HTML>