熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> JSP教程 >> 正文

TFDN圖片播放器 不錯自動播放

2022-06-13   來源: JSP教程 

  復制代碼 代碼如下:

  <html>
<head>
<title>上傳程序</title>
<meta httpequiv=ContentType content=text/html; charset=gb>
<style type=text/css>
    <!
    bodytdth {
    fontsize: px;
    color: #FFFFFF;
    }
INPUT {
    BORDERTOPWIDTH: px; BORDERLEFTWIDTH: px; FONTSIZE: px; BORDERBOTTOMWIDTH: px; BORDERRIGHTWIDTH: px
}
style {
    fontsize: px;
    fontfamily: 隸書;
}
body {
    backgroundcolor: #;
}
a:link {
    color: #FFFFFF;
    textdecoration: none;
}
a:visited {
    color: #FFFFFF;
    textdecoration: none;
}
a:hover {
    color: #FFFFFF;
    textdecoration: none;
}
a:active {
    color: #FFFFFF;
    textdecoration: none;
}
style {fontsize: px}
    >
</style>

<SCRIPT language=JavaScript>
<! Begin
//more javascript from 
var rotate_delay = ; // delay in milliseconds ( =  secs)
current = ;

function next() {

    if (documentslideformslide[current+]) {
        if(documentall){
            documentimagesshowstylefilter=blendTrans(duration=)
            documentimagesshowstylefilter=blendTrans(duration=crossFadeDuration)
            documentimagesshowfiltersblendTransApply()      
        }

        documentimagesshowsrc = documentslideformslide[current+]value;
        if(documentall){
            documentimagesshowfiltersblendTransplay()    
        }

        documentslideformslideselectedIndex = ++current;
   }
else first();

}

function previous() {

if (current >= ) {
        if(documentall){
            documentimagesshowstylefilter=blendTrans(duration=)
            documentimagesshowstylefilter=blendTrans(duration=crossFadeDuration)
            documentimagesshowfiltersblendTransApply()  
        }

        documentimagesshowsrc = documentslideformslide[current]value;
        if(documentall){
            documentimagesshowfiltersblendTransplay()    
        }        

        documentslideformslideselectedIndex = current;
   }
else last();

}

function first() {

current = ;
        if(documentall){
            documentimagesshowstylefilter=blendTrans(duration=)
            documentimagesshowstylefilter=blendTrans(duration=crossFadeDuration)
            documentimagesshowfiltersblendTransApply() 
        }

    documentimagesshowsrc = documentslideformslide[]value;
        if(documentall){
            documentimagesshowfiltersblendTransplay()    
        }    

documentslideformslideselectedIndex = ;

}

function last() {

    current = documentslideformslidelength;
    if(documentall){
            documentimagesshowstylefilter=blendTrans(duration=)
            documentimagesshowstylefilter=blendTrans(duration=crossFadeDuration)
            documentimagesshowfiltersblendTransApply() 
        }

    documentimagesshowsrc = documentslideformslide[current]value;
        if(documentall){
            documentimagesshowfiltersblendTransplay()    
        }    

    documentslideformslideselectedIndex = current;

}

function ap(text) {

    documentslideformslidebuttonvalue = (text == 停止播放) ? 自動播放 : 停止播放;

    rotate();

}

function change() {

    current = documentslideformslideselectedIndex;
    if(documentall){
        documentimagesshowstylefilter=blendTrans(duration=)
        documentimagesshowstylefilter=blendTrans(duration=crossFadeDuration)
        documentimagesshowfiltersblendTransApply() 
    }

    documentimagesshowsrc = documentslideformslide[current]value;
    if(documentall){
        documentimagesshowfiltersblendTransplay()    
    }    

}

function rotate() {

if (documentslideformslidebuttonvalue == 停止播放) {

        current = (current == documentslideformslidelength) ?  : current+;
        if(documentall){
            documentimagesshowstylefilter=blendTrans(duration=)
            documentimagesshowstylefilter=blendTrans(duration=crossFadeDuration)
            documentimagesshowfiltersblendTransApply() 
        }

        documentimagesshowsrc = documentslideformslide[current]value;
        if(documentall){
            documentimagesshowfiltersblendTransplay()    
        }    

        documentslideformslideselectedIndex = current;
        windowsetTimeout(rotate() rotate_delay);

    }

}
//  End >

</SCRIPT>
</head>
<body>
<FORM name=slideform>
<div align=center class=style> TFDN圖片播放器
</div>
<TABLE width=% height= border= align=center cellPadding= cellSpacing= bordercolor=# bgcolor=# style=bordercollapse:collapse>
<TR>
<TD height= align=center vAlign=center ><IMG src= align=center name=show > </TD>
</TR>
</TABLE>


<TABLE width=% border= align=center cellPadding= cellSpacing= bordercolor=#FF style=bordercollapse:collapse>
<TR>
<TD  height= align=middle bgcolor=#FF >
<%
    set rs=connexecute(select * from upload order by id)
%>
<SELECT onchange=change(); name=slide>
<% do while not rseof %>
<OPTION value=<%=rs(upfile)%>><%=rs(filename)%></OPTION>
<% 
    rsmovenext
    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(thisvalue); type=button value=自動播放 name=slidebutton>
<INPUT title=Next onclick=next(); type=button value=下一張>
<INPUT title=End onclick=last(); type=button value=尾張
<a >[上傳圖片]</a> <a >[圖片管理]
</a></TD>
</TR>
</TABLE>
</FORM>
</body>
</html>


From:http://tw.wingwit.com/Article/program/Java/JSP/201405/30747.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.