新浪选项卡效果

<!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" />
<title>无标题文档</title>
<script language="javascript" type="text/javascript">
<!--//--><![CDATA[//><!--

function SubShowClass(ID,eventType,defaultID,openClassName,closeClassName){this.version="1.21";this.author="mengjia";this.parentObj=SubShowClass.$(ID);if(this.parentObj==null&&ID!="none"){throw new Error("SubShowClass(ID)参数错误:ID 对像存在!(value:"+ID+")")};if(!SubShowClass.childs){SubShowClass.childs=[]};this.ID=SubShowClass.childs.length;SubShowClass.childs.push(this);this.lock=false;this.label=[];this.defaultID=defaultID==null?0:defaultID;this.selectedIndex=this.defaultID;this.openClassName=openClassName==null?"selected":openClassName;this.closeClassName=closeClassName==null?"":closeClassName;this.mouseIn=false;var mouseInFunc=Function("SubShowClass.childs["+this.ID+"].mouseIn = true"),mouseOutFunc=Function("SubShowClass.childs["+this.ID+"].mouseIn = false");if(ID!="none"){if(this.parentObj.attachEvent){this.parentObj.attachEvent("onmouseover",mouseInFunc)}else{this.parentObj.addEventListener("mouseover",mouseInFunc,false)}};if(ID!="none"){if(this.parentObj.attachEvent){this.parentObj.attachEvent("onmouseout",mouseOutFunc)}else{this.parentObj.addEventListener("mouseout",mouseOutFunc,false)}};if(typeof(eventType)!="string"){eventType="onmousedown"};eventType=eventType.toLowerCase();switch(eventType){case "onmouseover":this.eventType="mouseover";break;case "onmouseout":this.eventType="mouseout";break;case "onclick":this.eventType="click";break;case "onmouseup":this.eventType="mouseup";break;default:this.eventType="mousedown"};this.addLabel=function(labelID,contID,parentBg,springEvent,blurEvent){if(SubShowClass.$(labelID)==null&&labelID!="none"){throw new Error("addLabel(labelID)参数错误:labelID 对像存在!(value:"+labelID+")")};var TempID=this.label.length;if(parentBg==""){parentBg=null};this.label.push([labelID,contID,parentBg,springEvent,blurEvent]);var tempFunc=Function('SubShowClass.childs['+this.ID+'].select('+TempID+')');if(labelID!="none"){if(SubShowClass.$(labelID).attachEvent){SubShowClass.$(labelID).attachEvent("on"+this.eventType,tempFunc)}else{SubShowClass.$(labelID).addEventListener(this.eventType,tempFunc,false)}};if(TempID==this.defaultID){if(labelID!="none"){SubShowClass.$(labelID).className=this.openClassName};if(SubShowClass.$(contID)){SubShowClass.$(contID).style.display=""};if(ID!="none"){if(parentBg!=null){this.parentObj.style.background=parentBg}};if(springEvent!=null){eval(springEvent)}}else{if(labelID!="none"){SubShowClass.$(labelID).className=this.closeClassName};if(SubShowClass.$(contID)){SubShowClass.$(contID).style.display="none"}};if(SubShowClass.$(contID)){if(SubShowClass.$(contID).attachEvent){SubShowClass.$(contID).attachEvent("onmouseover",mouseInFunc)}else{SubShowClass.$(contID).addEventListener("mouseover",mouseInFunc,false)};if(SubShowClass.$(contID).attachEvent){SubShowClass.$(contID).attachEvent("onmouseout",mouseOutFunc)}else{SubShowClass.$(contID).addEventListener("mouseout",mouseOutFunc,false)}}};this.select=function(num,force){if(typeof(num)!="number"){throw new Error("select(num)参数错误:num 不是 number 类型!(value:"+num+")")};if(force!=true&&this.selectedIndex==num){return};var i;for(i=0;i<this.label.length;i++){if(i==num){if(this.label[i][0]!="none"){SubShowClass.$(this.label[i][0]).className=this.openClassName};if(SubShowClass.$(this.label[i][1])){SubShowClass.$(this.label[i][1]).style.display=""};if(ID!="none"){if(this.label[i][2]!=null){this.parentObj.style.background=this.label[i][2]}};if(this.label[i][3]!=null){eval(this.label[i][3])}}else if(this.selectedIndex==i||force==true){if(this.label[i][0]!="none"){SubShowClass.$(this.label[i][0]).className=this.closeClassName};if(SubShowClass.$(this.label[i][1])){SubShowClass.$(this.label[i][1]).style.display="none"};if(this.label[i][4]!=null){eval(this.label[i][4])}}};this.selectedIndex=num};this.random=function(){if(arguments.length!=this.label.length){throw new Error("random()参数错误:参数数量与标签数量不符!(length:"+arguments.length+")")};var sum=0,i;for(i=0;i<arguments.length;i++){sum+=arguments[i]};var randomNum=Math.random(),percent=0;for(i=0;i<arguments.length;i++){percent+=arguments[i]/sum;if(randomNum<percent){this.select(i);break}}};this.autoPlay=false;var autoPlayTimeObj=null;this.spaceTime=5000;this.play=function(spTime){if(typeof(spTime)=="number"){this.spaceTime=spTime};clearInterval(autoPlayTimeObj);autoPlayTimeObj=setInterval("SubShowClass.childs["+this.ID+"].autoPlayFunc()",this.spaceTime);this.autoPlay=true};this.autoPlayFunc=function(){if(this.autoPlay==false||this.mouseIn==true){return};this.nextLabel()};this.nextLabel=function(){var index=this.selectedIndex;index++;if(index>=this.label.length){index=0};this.select(index);if(this.autoPlay==true){clearInterval(autoPlayTimeObj);autoPlayTimeObj=setInterval("SubShowClass.childs["+this.ID+"].autoPlayFunc()",this.spaceTime)}};this.previousLabel=function(){var index=this.selectedIndex;index--;if(index<0){index=this.label.length-1};this.select(index);if(this.autoPlay==true){clearInterval(autoPlayTimeObj);autoPlayTimeObj=setInterval("SubShowClass.childs["+this.ID+"].autoPlayFunc()",this.spaceTime)}};this.stop=function(){clearInterval(autoPlayTimeObj);this.autoPlay=false}};SubShowClass.$=function(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else{return eval('document.all.'+objName)}}

//--><!]]>
</script>
<style type="text/css">
html, body, ul, li, p, h1, h2, h3, h4, h5, h6, form, fieldset, table, td, img {margin: 0;padding: 0;border: 0;}
ul{list-style-type:none;}
.FixTab{height:28px;overflow:hidden;background:url(http://i1.sinaimg.cn/blog/blog08/ruiblog/images/cgblog_hz_016.gif) repeat-x left top;line-height:28px;border-right:1px solid #d7eba0;}
.FixTab ul{float:left;border-left:1px solid #d7eba0;}
.FixTab li{float:left;border-top:1px solid #d7eba0;border-right:1px solid #d7eba0;font-size:14px;font-weight:bold;padding:0 10px;cursor:pointer;}
.FixTab li.selected{background:#FFF;color:#509102;}
.FixTab span.right{float:right;padding-right:10px;}
.FixTab li a {color:#000000;}
.FixTab li a:hover{color:#FF0000;}

.F14lists ul{padding:5px 10px;line-height:23px;}
.F14lists li{height:23px;overflow:hidden;padding-left:10px;background:url(http://i1.sinaimg.cn/blog/blog08/ruiblog/images/cgblog_hz_007.gif) no-repeat left 10px;vertical-align:bottom;}
.F14lists li p{float:left;font-size:14px;}
.F14lists li span{float:right;}
.F14lists li span a:link{color:#585858;}
.F14lists li span a:hover{color:#FF0000;}

.c_slipt{font-size:0;line-height:0;height:3px;overflow:hidden;background:url(http://i0.sinaimg.cn/blog/blog08/ruiblog/images/cgblog_hz_020.gif) no-repeat center top;clear:both;}
 
.closeClassName {color:#FF0000;}
.openClassName {background-color:#666666;}

</style>
</head>

<body>

<div class="FixTab" style="margin:0 10px;">
    <ul id="SubShow_02">
     <li id="SS_02_01">博乐推荐</li>
     <li id="SS_02_02"><a href="http://blog.sina.com.cn/lm/ruiblog/cgsy/more.html" target="_blank" style="text-decoration: none;">草根自荐</a></li>
    </ul>
    <span class="right"><a href="http://blog.sina.com.cn/lm/ruiblog/cgsy/index.html" target="_blank"></a></span>
   </div>
   <!--公用tab end-->
 
   <!--14号字Lists start-->
   <div class="F14lists" id="SSCont_02_01">
    <ul>
 
<li><p><a href="http://blog.sina.com.cn/s/blog_4d55d1290100da1w.html?tj=1" target="_blank" title="&quot;猪流感隔离门&quot;,为中国叫好!">&quot;猪流感隔离门&quot;,为中国叫好!</a></p><span><a href="http://blog.sina.com.cn/luxc6" target="_blank" title="为卿画眉">为卿画眉</a></span></li>
 
<li><p><a href="http://blog.sina.com.cn/s/blog_5eb998c90100daie.html?tj=1" target="_blank" title="吴稼祥,你比猪流感更可怕!">吴稼祥,你比猪流感更可怕!</a></p><span><a href="http://blog.sina.com.cn/u/1589221577" target="_blank" title="小七">小七</a></span></li>
 
<li><p><a href="http://blog.sina.com.cn/s/blog_4902b7060100dgh3.html?tj=1" target="_blank" title="台湾人编导《潜伏》续集值得期待">台湾人编导《潜伏》续集值得期待</a></p><span><a href="http://blog.sina.com.cn/yiangdi" target="_blank" title="长江短笛">长江短笛</a></span></li>
 
<li><p><a href="http://blog.sina.com.cn/s/blog_48c4ba290100d5x6.html?tj=1" target="_blank" title="汶川地震&quot;诱因&quot;传说有科学根据吗">汶川地震&quot;诱因&quot;传说有科学根据</a></p><span><a href="http://blog.sina.com.cn/laiguoqing" target="_blank" title="国清">国清</a></span></li>
 
<li><p><a href="http://blog.sina.com.cn/s/blog_563b6f940100cm29.html?tj=1" target="_blank" title="高考应全民平等,汉族不是贱民">高考应全民平等,汉族不是贱民</a></p><span><a href="http://blog.sina.com.cn/xiaojing" target="_blank" title="笑镜">笑镜</a></span></li>
 
    </ul>
    <div class="c_slipt"></div>
    <ul>
 
<li><p><a href="http://blog.sina.com.cn/s/blog_493d54b70100dl0n.html?tj=1" target="_blank" title="改革开放需要继续坚持思想解放">改革开放需要继续坚持思想解放</a></p><span><a href="http://blog.sina.com.cn/huzhiping" target="_blank" title="胡志平">胡志平</a></span></li>
 
<li><p><a href="http://blog.sina.com.cn/s/blog_537fd7410100d8uq.html?tj=1" target="_blank" title="墨西哥得猪流感,中国得外交流感">墨西哥得猪流感,中国得外交流感</a></p><span><a href="http://blog.sina.com.cn/smpb" target="_blank" title="司馬平邦">司馬平邦</a></span></li>
 
<li><p><a href="http://blog.sina.com.cn/s/blog_5ee421f00100dhek.html?tj=1" target="_blank" title="俄罗斯中国的差距为啥那么大呢">俄罗斯中国的差距为啥那么大呢</a></p><span><a href="http://blog.sina.com.cn/zhonghuashenqi2008" target="_blank" title="中华神起">中华神起</a></span></li>
 
<li><p><a href="http://blog.sina.com.cn/s/blog_4ea60fdb0100d4r3.html?tj=1" target="_blank" title="福建高考给台湾考生加分不公平">福建高考给台湾考生加分不公平</a></p><span><a href="http://blog.sina.com.cn/liu200612" target="_blank" title="今珊">今珊</a></span></li>
 
<li><p><a href="http://blog.sina.com.cn/s/blog_502b35080100dkc2.html?tj=1" target="_blank" title="炫富不能成为&quot;人肉搜索&quot;的理由">炫富不能成为&quot;人肉搜索&quot;的理由</a></p><span><a href="http://blog.sina.com.cn/u/1345008904" target="_blank" title="johnwu">johnwu</a></span></li>
 
    </ul>
   </div>
   <!--14号字Lists end-->
 
   <!--14号字Lists start-->
   <div class="F14lists" id="SSCont_02_02" style="display:none;">
    <ul>
 
<li><p><a href="http://blog.sina.com.cn/s/blog_5ff8419f0100d5b3.html?tj=1" target="_blank" title="情商也是决定孩子成长的根本">情商也是决定孩子成长的根本</a></p><span><a href="http://blog.sina.com.cn/zwdsf" target="_blank" title="神佑之罪">神佑之罪</a></span></li>
 
<li><p><a href="http://blog.sina.com.cn/s/blog_5f7921bf0100d7fq.html?tj=1" target="_blank" title="打破等级构架须从主席台做起">打破等级构架须从主席台做起</a></p><span><a href="http://blog.sina.com.cn/yanyunshibazhou" target="_blank" title="燕云十八州">燕云十八</a></span></li>
 
<li><p><a href="http://blog.sina.com.cn/s/blog_489ed3450100dsq8.html?tj=1" target="_blank" title="男人须小心办公室里的九种女人">男人须小心办公室里的九种女人</a></p><span><a href="http://blog.sina.com.cn/laodu123" target="_blank" title="梦回大唐">梦回大唐</a></span></li>
 
<li><p><a href="http://blog.sina.com.cn/s/blog_5ed522d00100cwl2.html?tj=1" target="_blank" title="90后小男生糟糕的情商让人头疼">90后小男生糟糕的情商让人头疼</a></p><span><a href="http://blog.sina.com.cn/fengxuehongniang" target="_blank" title="冯雪">冯雪</a></span></li>
 
<li><p><a href="http://blog.sina.com.cn/s/blog_4b71657f0100dc2a.html?tj=1" target="_blank" title="于丹在伦敦街头撒泼是名人现形?">于丹在伦敦街头撒泼是名人现形?</a></p><span><a href="http://blog.sina.com.cn/sanxiazaixian" target="_blank" title="三峡在线">三峡在线</a></span></li>
 
    </ul>
    <div class="c_slipt"></div>
    <ul>
 
<li><p><a href="http://blog.sina.com.cn/s/blog_48f319170100dawd.html?tj=1" target="_blank" title="猪流感都是开发商转行养猪惹的祸">猪流感都是开发商转行养猪惹的祸</a></p><span><a href="http://blog.sina.com.cn/liuguangyu" target="_blank" title="刘光宇">刘光宇</a></span></li>
 
<li><p><a href="http://blog.sina.com.cn/s/blog_4a7a92d50100cskx.html?tj=1" target="_blank" title="央视是怎样错用万人空巷这成语的">央视是怎样错用万人空巷这成语的</a></p><span><a href="http://blog.sina.com.cn/dyfangcheng" target="_blank" title="dy方程">dy方程</a></span></li>
 
<li><p><a href="http://blog.sina.com.cn/s/blog_4d34c8610100ddlw.html?tj=1" target="_blank" title="大学排行榜的愚民意识过于强烈">大学排行榜的愚民意识过于强烈</a></p><span><a href="http://blog.sina.com.cn/xiaochuantmac" target="_blank" title="肖川">肖川</a></span></li>
 
<li><p><a href="http://blog.sina.com.cn/s/blog_4940386a0100ded9.html?tj=1" target="_blank" title="温总理给“敬礼娃娃”郎铮回信">温总理给“敬礼娃娃”郎铮回信</a></p><span><a href="http://blog.sina.com.cn/luoyuquan" target="_blank" title="故乡的云">故乡的云</a></span></li>
 
<li><p><a href="http://blog.sina.com.cn/s/blog_4bacdd600100d3q5.html?tj=1" target="_blank" title="影响中国特种行业的三个男人">影响中国特种行业的三个男人</a></p><span><a href="http://blog.sina.com.cn/xbcz" target="_blank" title="西部岑子">西部岑子</a></span></li>
 
    </ul>
   </div>
   <!--14号字Lists end-->
 
<script language="javascript" type="text/javascript">
<!--//--><![CDATA[//><!--
var SubShow_02 = new SubShowClass("SubShow_02","onmouseover",0,"openClassName","closeClassName");//onmouseover
SubShow_02.addLabel("SS_02_01","SSCont_02_01");
SubShow_02.addLabel("SS_02_02","SSCont_02_02");
//--><!]]>
</script>
 
  </div>
</body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值