您好,欢迎访问一九零五行业门户网

javascript 控制图片播放

!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 / titl
无标题文档
img {border:0;}
.photo {width:310px;height:280px;border-top:0;border-right:2px solid #9f9fa1;border-bottom:1px solid #9f9fa1;border-left:2px solid #9f9fa1;font-size:12px;}
.photo .left {width:310px;height:222px;margin:0 5px;}
.photo .left img {width:310px;height:250px;}
.photo ul li {float:left;list-style-type:none;width:140px;height:135px;}
.photo ul li img {width:130px;height:115px;border:1px solid #999;}
.photo ul li div {line-height:19px;height:19px;overflow:hidden;}
#fc {filter:progid:dximagetransform.microsoft.fade (duration=0.5,overlap=1.0);}
#con,#num {height:20px;line-height:20px;overflow:hidden;}
#con {float:left;width:200px;text-align:center;}
#num {float:right;width:110px;}
#num span {cursor:pointer;width:15px;height:15px;display:block;float:left;margin:0 1px;line-height:16px;overflow:hidden;margin-top:2px;text-align:center;}
.bigon{background:url(numon.gif);color:#fff;} /*长为15px 宽为15px*/
.bigoff{background:url(numoff.gif);color:#000;}
昆山论坛“新世军”军团掠影
2009年昆山第三届徒步大会昆坛会员合影
昆坛会员相聚阳澄湖畔野炊活动
昆坛大合唱“相亲相爱一家人”家人风采
“我是女生”昆山论坛网友秀
昆山首届万圣节系列图片大放送





6
kshot.js文件
var n=0;
var shownum = document.getelementbyid(num);
var shownums = document.getelementbyid(num).getelementsbytagname(span);
function mea(value){
n=value;
setbg(value);
plays(value);
cons(value);
}
function setbg(value){
for(var i=0;i   if(value==i){
shownum.getelementsbytagname(span)[i].classname='bigon';

else{
shownum.getelementsbytagname(span)[i].classname='bigoff';
}  

function plays(value){
try
{
with (fc)
{
filters[0].apply();
for(i=0;i filters[0].play(); 
}
}
catch(e)
{
var divlist = document.getelementbyid(fc).getelementsbytagname(div);
for(i=0;i {
i==value?divlist[i].style.display=block:divlist[i].style.display=none;
}
}
}
function cons(value){
try
{
with (con)
{
for(i=0;i }
}
catch(e)
{
var divlist = document.getelementbyid(con).getelementsbytagname(div);
for(i=0;i {
i==value?divlist[i].style.display=block:divlist[i].style.display=none;
}
}
}
function setauto(){autostart=setinterval(auto(n), 5000)}
function clearauto(){clearinterval(autostart)}
function auto(){
n++;
if(n>shownums.length-1)n=0;
mea(n);

function sub(){
n--;
if(n
mea(n);
}
setauto();
其它类似信息

推荐信息