家园首页 Php4手册 我的相册 家园下载 个人文集 给我留言
我形我塑,网络相册,www.5x54.com 相册 相册 心情相册,少女相册 免费申请,我形我塑免费相册
 家园 个人文集   http://www.5x54.com
 


幻灯片播放图片,上一张、下一张,图片演示,图片自动切换


作者:网上收集    点击: 读取中...

引用代码:<META http-equiv="Content-Type" content="text/html; charset=gb2312"> (%$$#^57467*&%2)我型我塑www.5x54.com
<style type="text/css"> <!-- select {}{ font-family: "tahoma"; font-size: 10px; color: #666666} (%$$#^57467*&%2)我型我塑www.5x54.com
  input {}{ font-family: "tahoma"; font-size: 10px; color: #000000; border: #666666; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px} (%$$#^57467*&%2)我型我塑www.5x54.com
  --></style> (%$$#^57467*&%2)我型我塑www.5x54.com
<SCRIPT LANGUAGE="JavaScript"> (%$$#^57467*&%2)我型我塑www.5x54.com
(%$$#^57467*&%2)我型我塑www.5x54.com
var rotate_delay = 2000; // delay in milliseconds (5000 = 5 secs) (%$$#^57467*&%2)我型我塑www.5x54.com
current = 0; (%$$#^57467*&%2)我型我塑www.5x54.com
function next() { (%$$#^57467*&%2)我型我塑www.5x54.com
if (document.slideform.slide[current+1]) { (%$$#^57467*&%2)我型我塑www.5x54.com
document.images.show.src = document.slideform.slide[current+1].value; (%$$#^57467*&%2)我型我塑www.5x54.com
document.slideform.slide.selectedIndex = ++current; (%$$#^57467*&%2)我型我塑www.5x54.com
  } (%$$#^57467*&%2)我型我塑www.5x54.com
else first(); (%$$#^57467*&%2)我型我塑www.5x54.com
} (%$$#^57467*&%2)我型我塑www.5x54.com
function previous() { (%$$#^57467*&%2)我型我塑www.5x54.com
if (current-1 >= 0) { (%$$#^57467*&%2)我型我塑www.5x54.com
document.images.show.src = document.slideform.slide[current-1].value; (%$$#^57467*&%2)我型我塑www.5x54.com
document.slideform.slide.selectedIndex = --current; (%$$#^57467*&%2)我型我塑www.5x54.com
  } (%$$#^57467*&%2)我型我塑www.5x54.com
else last(); (%$$#^57467*&%2)我型我塑www.5x54.com
} (%$$#^57467*&%2)我型我塑www.5x54.com
function first() { (%$$#^57467*&%2)我型我塑www.5x54.com
current = 0; (%$$#^57467*&%2)我型我塑www.5x54.com
document.images.show.src = document.slideform.slide[0].value; (%$$#^57467*&%2)我型我塑www.5x54.com
document.slideform.slide.selectedIndex = 0; (%$$#^57467*&%2)我型我塑www.5x54.com
} (%$$#^57467*&%2)我型我塑www.5x54.com
function last() { (%$$#^57467*&%2)我型我塑www.5x54.com
current = document.slideform.slide.length-1; (%$$#^57467*&%2)我型我塑www.5x54.com
document.images.show.src = document.slideform.slide[current].value; (%$$#^57467*&%2)我型我塑www.5x54.com
document.slideform.slide.selectedIndex = current; (%$$#^57467*&%2)我型我塑www.5x54.com
} (%$$#^57467*&%2)我型我塑www.5x54.com
function ap(text) { (%$$#^57467*&%2)我型我塑www.5x54.com
document.slideform.slidebutton.value = (text == "停止幻灯片播放") ? "开始幻灯片播放" : "停止幻灯片播放"; (%$$#^57467*&%2)我型我塑www.5x54.com
rotate(); (%$$#^57467*&%2)我型我塑www.5x54.com
} (%$$#^57467*&%2)我型我塑www.5x54.com
function change() { (%$$#^57467*&%2)我型我塑www.5x54.com
current = document.slideform.slide.selectedIndex; (%$$#^57467*&%2)我型我塑www.5x54.com
document.images.show.src = document.slideform.slide[current].value; (%$$#^57467*&%2)我型我塑www.5x54.com
} (%$$#^57467*&%2)我型我塑www.5x54.com
function rotate() { (%$$#^57467*&%2)我型我塑www.5x54.com
if (document.slideform.slidebutton.value == "停止幻灯片播放") { (%$$#^57467*&%2)我型我塑www.5x54.com
current = (current == document.slideform.slide.length-1) ? 0 : current+1; (%$$#^57467*&%2)我型我塑www.5x54.com
document.images.show.src = document.slideform.slide[current].value; (%$$#^57467*&%2)我型我塑www.5x54.com
document.slideform.slide.selectedIndex = current; (%$$#^57467*&%2)我型我塑www.5x54.com
window.setTimeout("rotate()", rotate_delay); (%$$#^57467*&%2)我型我塑www.5x54.com
  } (%$$#^57467*&%2)我型我塑www.5x54.com
} (%$$#^57467*&%2)我型我塑www.5x54.com
(%$$#^57467*&%2)我型我塑www.5x54.com
</SCRIPT> (%$$#^57467*&%2)我型我塑www.5x54.com
<body bgcolor="#ffffff" text="#000000"> (%$$#^57467*&%2)我型我塑www.5x54.com
  <form name="slideform"> (%$$#^57467*&%2)我型我塑www.5x54.com
    <table cellspacing="1" cellpadding="4" bgcolor="#000000" width="540" height="340"> (%$$#^57467*&%2)我型我塑www.5x54.com
      <tr> (%$$#^57467*&%2)我型我塑www.5x54.com
        <td align="center" bgcolor="white" width="540" height="340"> (%$$#^57467*&%2)我型我塑www.5x54.com
          <img src="http://img1.qq.com/news/pics/17919/17919986.jpg" name="show"> (%$$#^57467*&%2)我型我塑www.5x54.com
        </td> (%$$#^57467*&%2)我型我塑www.5x54.com
      </tr> (%$$#^57467*&%2)我型我塑www.5x54.com
      <tr> (%$$#^57467*&%2)我型我塑www.5x54.com
        <td align="center" bgcolor="#c0c0c0"> (%$$#^57467*&%2)我型我塑www.5x54.com
          <select name="slide" onChange="change();"> (%$$#^57467*&%2)我型我塑www.5x54.com
            <option value="http://img1.qq.com/news/pics/17919/17919986.jpg" selected> (%$$#^57467*&%2)我型我塑www.5x54.com
            1 (%$$#^57467*&%2)我型我塑www.5x54.com
            <option value="http://img1.qq.com/news/pics/17919/17919991.jpg"> (%$$#^57467*&%2)我型我塑www.5x54.com
            2 (%$$#^57467*&%2)我型我塑www.5x54.com
            <option value="http://img1.qq.com/news/pics/17919/17919988.jpg"> (%$$#^57467*&%2)我型我塑www.5x54.com
            3 (%$$#^57467*&%2)我型我塑www.5x54.com
            <option value="http://img1.qq.com/news/pics/17919/17919994.jpg"> (%$$#^57467*&%2)我型我塑www.5x54.com
            4 (%$$#^57467*&%2)我型我塑www.5x54.com
            <option value="http://img1.qq.com/news/pics/17920/17920001.jpg"> (%$$#^57467*&%2)我型我塑www.5x54.com
            5 (%$$#^57467*&%2)我型我塑www.5x54.com
            <option value="http://img1.qq.com/news/pics/17920/17920005.jpg"> (%$$#^57467*&%2)我型我塑www.5x54.com
            6 (%$$#^57467*&%2)我型我塑www.5x54.com
            <option value="http://img1.qq.com/news/pics/17920/17920008.jpg"> (%$$#^57467*&%2)我型我塑www.5x54.com
            7 (%$$#^57467*&%2)我型我塑www.5x54.com
</option> (%$$#^57467*&%2)我型我塑www.5x54.com
          </select> (%$$#^57467*&%2)我型我塑www.5x54.com
        </td> (%$$#^57467*&%2)我型我塑www.5x54.com
      </tr> (%$$#^57467*&%2)我型我塑www.5x54.com
      <tr> (%$$#^57467*&%2)我型我塑www.5x54.com
        <td align="center" bgcolor="#c0c0c0"> (%$$#^57467*&%2)我型我塑www.5x54.com
          <input type="button" onClick="first();" value="第 一 张" title="Beginning"> <input type="button" onClick="previous();" value="上一张" title="Previous"> (%$$#^57467*&%2)我型我塑www.5x54.com
          <input type="button" name="slidebutton" onClick="ap(this.value);" value="开始幻灯片播放" title="AutoPlay"> (%$$#^57467*&%2)我型我塑www.5x54.com
          <input type="button" onClick="next();" value="下一张" title="Next"> <input type="button" onClick="last();" value="最后一张" title="End"> (%$$#^57467*&%2)我型我塑www.5x54.com
        </td> (%$$#^57467*&%2)我型我塑www.5x54.com
      </tr> (%$$#^57467*&%2)我型我塑www.5x54.com
    </table> (%$$#^57467*&%2)我型我塑www.5x54.com
  </form> (%$$#^57467*&%2)我型我塑www.5x54.com
</body>

收藏此文章     打印  更新     编辑此文章    『关闭窗口』