TFDN图片播放器 不错自动播放

2018-10-15 17:27

阅读:493

复制代码 代码如下:
<html>
<head>
<metahttp-equiv=Content-Typecontent=text/html;charset=gb2312>
<styletype=text/css>
<!--
body,td,th{
font-size:14px;
color:#FFFFFF;
}
INPUT{
BORDER-TOP-WIDTH:1px;BORDER-LEFT-WIDTH:1px;FONT-SIZE:12px;BORDER-BOTTOM-WIDTH:1px;BORDER-RIGHT-WIDTH:1px
}
.style1{
font-size:36px;
font-family:隶书;
}
body{
background-color:#000000;
}
a:link{
color:#FFFFFF;
text-decoration:none;
}
a:visited{
color:#FFFFFF;
text-decoration:none;
}
a:hover{
color:#FFFFFF;
text-decoration:none;
}
a:active{
color:#FFFFFF;
text-decoration:none;
}
.style2{font-size:18px}
-->
</style>

<SCRIPTlanguage=JavaScript>
<!--Begin
//morejavascriptfrom
varrotate_delay=3000;//delayinmilliseconds(1000=1secs)
current=0;

functionnext(){

if(document.slideform.slide[current+1]){
if(document.all){
document.images.show.style.filter=blendTrans(duration=2)
document.images.show.style.filter=blendTrans(duration=crossFadeDuration)
document.images.show.filters.blendTrans.Apply()
}

document.images.show.src=document.slideform.slide[current+1].value;
if(document.all){
document.images.show.filters.blendTrans.play()
}

document.slideform.slide.selectedIndex=++current;
}
elsefirst();

}

functionprevious(){

if(current-1>=0){
if(document.all){
document.images.show.style.filter=blendTrans(duration=2)
document.images.show.style.filter=blendTrans(duration=crossFadeDuration)
document.images.show.filters.blendTrans.Apply()
}

document.images.show.src=document.slideform.slide[current-1].value;
if(document.all){
document.images.show.filters.blendTrans.play()
}

document.slideform.slide.selectedIndex=--current;
}
elselast();

}

functionfirst(){

current=0;
if(document.all){
document.images.show.style.filter=blendTrans(duration=2)
document.images.show.style.filter=blendTrans(duration=crossFadeDuration)
document.images.show.filters.blendTrans.Apply()
}

document.images.show.src=document.slideform.slide[0].value;
if(document.all){
document.images.show.filters.blendTrans.play()
}

document.slideform.slide.selectedIndex=0;

}

functionlast(){

current=document.slideform.slide.length-1;
if(document.all){
document.images.show.style.filter=blendTrans(duration=2)
document.images.show.style.filter=blendTrans(duration=crossFadeDuration)
document.images.show.filters.blendTrans.Apply()
}

document.images.show.src=document.slideform.slide[current].value;
if(document.all){
document.images.show.filters.blendTrans.play()
}

document.slideform.slide.selectedIndex=current;

}

functionap(text){

document.slideform.slidebutton.value=(text==停止播放)?自动播放:停止播放;

rotate();

}

functionchange(){

current=document.slideform.slide.selectedIndex;
if(document.all){
document.images.show.style.filter=blendTrans(duration=2)
document.images.show.style.filter=blendTrans(duration=crossFadeDuration)
document.images.show.filters.blendTrans.Apply()
}

document.images.show.src=document.slideform.slide[current].value;
if(document.all){
document.images.show.filters.blendTrans.play()
}

}

functionrotate(){

if(document.slideform.slidebutton.value==停止播放){

current=(current==document.slideform.slide.length-1)?0:current+1;
if(document.all){
document.images.show.style.filter=blendTrans(duration=2)
document.images.show.style.filter=blendTrans(duration=crossFadeDuration)
document.images.show.filters.blendTrans.Apply()
}

document.images.show.src=document.slideform.slide[current].value;
if(document.all){
document.images.show.filters.blendTrans.play()
}

document.slideform.slide.selectedIndex=current;
window.setTimeout(rotate(),rotate_delay);

}

}
//End-->

</SCRIPT>
</head>
<body>
<FORMname=slideform>
<divalign=centerclass=style1>TFDN图片播放器
</div>
<TABLEwidth=80%height=243border=1align=centercellPadding=0cellSpacing=0bordercolor=#009900bgcolor=#009933style=border-collapse:collapse>
<TR>
<TDheight=220align=centervAlign=center><IMGsrc=
</TR>
</TABLE>


<TABLEwidth=80%border=1align=centercellPadding=0cellSpacing=0bordercolor=#FF9900style=border-collapse:collapse>
<TR>
<TDheight=29align=middlebgcolor=#FF9900>
<%
setrs=conn.execute(select*fromuploadorderbyid)
%>
<SELECTonchange=change();name=slide>
<%dowhilenotrs.eof%>
<OPTIONvalue=<%=rs(upfile)%>><%=rs(filename)%></OPTION>
<%
rs.movenext
loop
setrs=nothing
setconn=nothing
%>
</SELECT>
<INPUTtitle=Beginningonclick=first();type=buttonvalue=首张>
<INPUTtitle=Previousonclick=previous();type=buttonvalue=上一张>
<INPUTtitle=AutoPlayonclick=ap(this.value);type=buttonvalue=自动播放name=slidebutton>
<INPUTtitle=Nextonclick=next();type=buttonvalue=下一张>
<INPUTtitle=Endonclick=last();type=buttonvalue=尾张>
<ahref=up.htm>[上传图片]</a><ahref=admin.asp>[图片管理]
</a></TD>
</TR>
</TABLE>
</FORM>
</body>
</html>


评论


亲,登录后才可以留言!