精彩图片推荐
BODY {
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px auto; PADDING-TOP: 0px; BACKGROUND-COLOR: #f0f8f8
}
TD {
FONT-SIZE: 12px
}
A {
FONT-SIZE: 12px; LINE-HEIGHT: 18px; TEXT-DECORATION: none
}
A:hover {
COLOR: #ff3300; LINE-HEIGHT: 18px; TEXT-DECORATION: underline
}
.img01 {
BORDER-RIGHT: #fff 1px solid; BORDER-TOP: #fff 1px solid; BORDER-LEFT: #fff 1px solid; BORDER-BOTTOM: #fff 1px solid
}
var jx1=document.getElementById("jx1");
var jx2=document.getElementById("jx2");
//设置显示哪个层的变量
var sL=1;
//设置动与不动的变量
var iS=0;
//设定显示时间
function p() {
if(iS==0) {
if(sL%2==1) {
cs1(jx1,1);
cs1(jx2,0);
setTimeout('p()',5000);
} else{
cs1(jx1,0);
cs1(jx2,1);
setTimeout('p()',5000);
}
sL++;
} else {
setTimeout('p()',2000);
}
}
//显示函数
function cs1(a,b) {
if(a==null)return;
a.filters.revealTrans.apply();
if(b==1) a.style.visibility="visible";
else a.style.visibility="hidden";
a.filters.revealTrans.play();
}
//设定is变量
function s(v) {iS=v;}
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]