欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2023-12-09 23:36:57
复制代码 代码如下: 52515.net上传程序
复制代码 代码如下:

<html>
<head>
<title>52515.net上传程序</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<style type="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>

<script language=javascript>
<!-- begin
//more javascript from http://www.smallrain.net
var rotate_delay = 3000; // delay in milliseconds (1000 = 1 secs)
current = 0;

function next() {

    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;
   }
else first();

}

function previous() {

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;
   }
else last();

}

function first() {

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;

}

function last() {

    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;

}

function ap(text) {

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

    rotate();

}

function change() {

    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()    
    }    

}

function rotate() {

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>
<form name=slideform>
<div align="center" class="style1"> tfdn图片播放器
</div>
<table width="80%" height="243" border=1 align=center cellpadding=0 cellspacing=0 bordercolor="#009900" bgcolor="#009933" style="border-collapse:collapse">
<tr>
<td height="220" align="center" valign=center ><img src="http://61.152.149.36/images/shanghai/office/8gua20050901/1767.jpg" align=center name=show > </td>
</tr>
</table>


<table width="80%" border=1 align="center" cellpadding=0 cellspacing=0 bordercolor="#ff9900" style="border-collapse:collapse">
<tr>
<td  height=29 align=middle bgcolor="#ff9900" >
<%
    set rs=conn.execute("select * from upload order by id")
%>
<select onchange=change(); name=slide>
<% do while not rs.eof %>
<option value=<%=rs("upfile")%>><%=rs("filename")%></option>
<% 
    rs.movenext
    loop
    set rs=nothing
    set conn=nothing
%>
</select>
<input title=beginning onclick=first(); type=button value="首张">
<input title=previous onclick=previous(); type=button value="上一张">
<input title=autoplay onclick=ap(this.value); type=button value=自动播放 name=slidebutton>
<input title=next onclick=next(); type=button value="下一张">
<input title=end onclick=last(); type=button value="尾张"> 
<a href="up.htm">[上传图片]</a> <a href="admin.asp">[图片管理]
</a></td>
</tr>
</table>
</form>
</body>
</html>