TFDN圖片播放器 不錯自動播放
更新時間:2006年10月03日 00:00:00 作者:
復(fù)制代碼 代碼如下:
<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>
相關(guān)文章
ie8.0下顯示本地圖片的js實(shí)現(xiàn)代碼 img.src
ie8.0下顯示本地圖片的js實(shí)現(xiàn)代碼,IE8.0 顯示本地圖片 img.src=本地圖片路徑 是無效,只能通過div來完成2012-03-03javascript實(shí)現(xiàn)的一個圖片轉(zhuǎn)移效果
javascript實(shí)現(xiàn)的一個圖片轉(zhuǎn)移效果...2007-06-06js實(shí)現(xiàn)圖片加載時候逐漸出現(xiàn)的雜色效果
有一些網(wǎng)站在加載圖片的時候不是一下子就出來了,而是由模糊到清淅,或是由一種不占用過多網(wǎng)絡(luò)資源的方式先大致顯示,然后再慢慢加載,避免因用戶等不及將網(wǎng)頁關(guān)掉,像馬賽克效果、沙子效果等2010-08-08javascript 指定區(qū)域內(nèi)圖片等比例縮放實(shí)現(xiàn)代碼 腳本之家整合版
javascript 區(qū)域內(nèi) 圖片等比例縮放實(shí)現(xiàn)代碼 腳本之家整合版,兼容ie跟firefox。2009-10-10List the Stored Procedures in a SQL Server database
List the Stored Procedures in a SQL Server database...2007-06-06