六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 426|回复: 0

选项卡效果

[复制链接]

升级  75.55%

819

主题

819

主题

819

主题

探花

Rank: 6Rank: 6

积分
2511
 楼主| 发表于 2013-2-8 00:59:56 | 显示全部楼层 |阅读模式
<div style="padding-right: 5.4pt; padding-left: 5.4pt; background: #e6e6e6; padding-bottom: 4px; width: 95%; padding-top: 4px;"><LINK
href="1/p7tp_08.css"type=text/cssrel=stylesheet>
<LINKhref="1/ziti.css"type=text/cssrel=stylesheet>
<SCRIPTsrc="1/p7tpscripts.js"type=text/javascript></SCRIPT>
<TABLEcellSpacing=2cellPadding=2width=480
border=0>
<TBODY>
<TR>
<TDalign=leftwidth=480>
<DIVclass=p7TPpanelid=p7TP1>
<DIVclass=p7TPwrapper>
<DIVclass=p7TP_tabs>
<DIVclass=downid=p7tpb1_1><Aclass=down
href="javascript:;"><B>147258</B></A></DIV>
<DIVid=p7tpb1_2><A
href="javascript:;"><B>2</B></A></DIV>
<DIVid=p7tpb1_3><Ahref="javascript:;"><B>3333</B></A></DIV><BR
class=p7TPclear></DIV>
<DIVclass=p7TPcontent>
<DIVid=p7tpc1_1>
<TABLEcellSpacing=1cellPadding=1width="98%"
align
=centerborder=0>
<TBODY>
<TRvAlign=top>
<TD>123456</TD></TR></TBODY></TABLE>
<TABLEcellSpacing=0cellPadding=0width=190
border=0>
<TBODY>
<TR>
<TDclass=style35width=190
height=10></TD></TR></TBODY></TABLE></DIV>
<DIVid=p7tpc1_2>
<TABLEcellSpacing=1cellPadding=1width="98%"
align
=centerborder=0>
<TBODY>
<TRvAlign=top>
<TDalign=leftwidth="84%">23456</TD></TR></TBODY></TABLE></DIV>
<DIVid=p7tpc1_3>
<TABLEcellSpacing=1cellPadding=1width="98%"
align
=centerborder=0>
<TBODY>
<TRvAlign=top>
<TDalign=leftwidth="84%">3589</TD></TR></TBODY></TABLE></DIV></DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<SCRIPTtype=text/javascript>...
<!--
P7_initTP(
8,0);
//-->
</SCRIPT>

JS文件如下
===============================
varp7tpa=newArray();
functionP7_setTP(){
vari,h="
<sty"+"letype="text/css"> ";h+=".p7TP_tabs{display:block;}.p7TPcontentdiv{display:none;} ";
h+=".p7TPcontentdivdiv{display:block;} ";if(document.getElementById){for(i=1;i
<11;i++){
h+
="#p7tpc"+i+"_1{display:block;} ";}h+=" <"+"/sty"+"le>";document.write(h);}
}
P7_setTP();
functionP7_initTP(){
vari,j,tb,tD,tP,tA,pb="p7TP";if(!document.getElementById){return;};p7tpa=arguments;
for(i=1;i
<11;i++){tb=pb+i;tP=document.getElementById(tb);if(tP){tD=tP.getElementsByTagName("DIV");
if(tD){for(j=0;j<tD.length;j++){if(tD[j].id&&tD[j].id.indexOf("p7tpb")==0){
tA=tD[j].getElementsByTagName("A");if(tA[0]){tA[0].p7tpn=newArray(i,tD[j].id);
tA[0].onclick
=function(){returnP7_TPtrig(this);};}}}}}}
}
functionP7_TPtrig(a){
vari,tD,tA,tC,c,d,sb,an
=p7tpa[1];if(typeof(a)!='object'){c=a.replace("p7tpc","p7tpb");
d=document.getElementById(c);if(d){a=d.getElementsByTagName("A")[0];}}if(a.p7tpn){
tD=document.getElementById(a.p7tpn[1]);if(tD){tA=tD.parentNode.getElementsByTagName("A");
for(i=0;i<tA.length;i++){if(tA.p7tpn){sb=tA.p7tpn[1].replace("p7tpb","p7tpc");
tC=document.getElementById(sb);if(tA==a){tA.className="down";
document.getElementById(tA.p7tpn[1]).className="down";if(tC){if(an>0){
tC.style.visibility="hidden";tC.style.display="block";setTimeout("P7_TPanim('"+tC.id+"')",100);
}else{tC.style.display="block";}}}else{tA.className='';
document.getElementById(tA.p7tpn[1]).className='';if(tC){tC.style.display="none";}}}}}}returnfalse;
}
functionP7_TPanim(iD){
vari,f,tC,g=newArray(),an=p7tpa[1];ob=document.getElementById(iD);tC=ob.parentNode;
if(!tC.filters){ob.style.opacity="0.10";ob.style.visibility='visible';P7_TPfadeIn(ob.id,0.00);
return;}f='progid:DXImageTransform.Microsoft.';d='Duration=1';
g[0]='Fade';g[1]='Fade';g[2]='Wipe(GradientSize=0.5,wipeStyle=0,motion="forward"'+d+')';
g[3]='Pixelate(MaxSquare=50,Duration=1,Enabled=false'+d+')';
g[4]='RandomDissolve('+d+')';g[5]='Iris(irisstyle="SQUARE",motion="in"'+d+')';
g[6]='Iris(irisstyle="SQUARE",motion="out"'+d+')';g[7]='Iris(irisstyle="CIRCLE",motion="in"'+d+')';
g[8]='Iris(irisstyle="CIRCLE",motion="out"'+d+')';g[9]='Blinds(direction="up",bands=1'+d+')';
g[10]='Blinds(direction="down",bands=1'+d+')';g[11]='Blinds(direction="right",bands=1'+d+')';
g[12]='Blinds(direction="left",bands=1'+d+')';g[13]='Barn(orientation="vertical",motion="in"'+d+')';
g[14]='Barn(orientation="vertical",motion="out"'+d+')';g[15]='Barn(orientation="horizontal",motion="in"'+d+')'
g[16]='Barn(orientation="horizontal",motion="out"'+d+')';g[17]='Strips(motion="leftdown"'+d+')';
g[18]='Strips(motion="leftup"'+d+')';g[19]='Strips(motion="rightdown"'+d+')';
g[20]='Strips(motion="rightup"'+d+')';g[21]='RadialWipe(wipeStyle="clock"'+d+')';
g[22]='RadialWipe(wipeStyle="wedge"'+d+')';g[23]='RadialWipe(wipeStyle="radial"'+d+')';
g[24]='Slide(slideStyle="PUSH",bands=1'+d+')';g[25]='Slide(slideStyle="SWAP",bands=5'+d+')';
g[26]='Slide(slideStyle="HIDE",bands=1'+d+')';g[27]='Wheel(spokes=4'+d+')';g[28]='Wheel(spokes=16'+d+')';
an=(an>g.length)?3:an;f+=g[an];tC.style.filter=f;if(tC.filters.length
<1){p7tpa[1]=0;ob.style.visibility='visible';
return;}tC.filters[0].Apply();ob.style.visibility='visible';tC.filters[0].Play();
}
functionP7_TPfadeIn(id,op){
vard
=document.getElementById(id);op+=.05;op=(op>=1)?1:op;d.style.opacity=op;
if(op
<1){setTimeout("P7_TPfadeIn('"+id+"',"+op+")",10);}
}
================================================
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表