<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>网页特效|Linkweb.cn/Js|--- 图片播放器</title></head>
<body>
<SCRIPT LANGUAGE="JavaScript"><!-- Begin
var Onerotate_delay = 2000; // delay in milliseconds (5000 = 5 secs)Onecurrent = 0;var OneLinks = new Array(3);OneLinks[0] = "#";OneLinks[1] = "#";OneLinks[2] = "#";function Onenext() {if (document.Oneslideform.Oneslide[Onecurrent+1]) {document.images.Oneshow.src = document.Oneslideform.Oneslide[Onecurrent+1].value;document.Oneslideform.Oneslide.selectedIndex = ++Onecurrent; }else Onefirst();}function Oneprevious() {if (Onecurrent-1 >= 0) {document.images.Oneshow.src = document.Oneslideform.Oneslide[Onecurrent-1].value;document.Oneslideform.Oneslide.selectedIndex = --Onecurrent; }else Onelast();}function Onefirst() {Onecurrent = 0;document.images.Oneshow.src = document.Oneslideform.Oneslide[0].value;document.Oneslideform.Oneslide.selectedIndex = 0;}function Onelast() {Onecurrent = document.Oneslideform.Oneslide.length-1;document.images.Oneshow.src = document.Oneslideform.Oneslide[Onecurrent].value;document.Oneslideform.Oneslide.selectedIndex = Onecurrent;}function Oneap(text) {document.Oneslideform.Oneslidebutton.value = (text == "Stop") ? "Start" : "Stop";Onerotate();}function Onechange() {Onecurrent = document.Oneslideform.Oneslide.selectedIndex;document.images.Oneshow.src = document.Oneslideform.Oneslide[Onecurrent].value;}function Onerotate() {if (document.Oneslideform.Oneslidebutton.value == "Stop") {Onecurrent = (Onecurrent == document.Oneslideform.Oneslide.length-1) ? 0 : Onecurrent+1;document.images.Oneshow.src = document.Oneslideform.Oneslide[Onecurrent].value;document.Oneslideform.Oneslide.selectedIndex = Onecurrent;window.setTimeout("Onerotate()", Onerotate_delay);}}function Onetransport(){window.location=OneLinks[Onecurrent]}// End --></SCRIPT><TABLE border="0" cellspacing="0" cellpadding="0"> <TR> <TD> <form name="Oneslideform" > <DIV align="center"> <TABLE width="150" border="1" cellspacing="0" cellpadding="4" bordercolor="#FF99CC"> <TR> <TD bgcolor="#FFFFFF"> <DIV align="center"><A href="nojavascript...Onetransport()"><IMG src="images/k0212.gif" width="140" height="105" name="Oneshow" border="0"></A></DIV></TD> </TR> <TR> <TD bgcolor="#FFE1F5"> <DIV align="center"> <SELECT name="Oneslide" onChange="Onechange();"> <OPTION value="images/flag.gif" selected>图片 1</OPTION> <OPTION value="images/developer.gif">图片 2</OPTION> <OPTION value="images/love.gif">图片 3</OPTION> </SELECT> </DIV></TD> </TR> <TR> <TD bgcolor="#FFE1F5"> <DIV align="center"> <INPUT type=button onClick="Oneprevious();" value="<<" title="上一个"> <INPUT type=button name="Oneslidebutton" onClick="Oneap(this.value);" value="开始循环" title="自动显示"> <INPUT type=button onClick="Onenext();" value=">>" title="下一个"> </DIV></TD> </TR> </TABLE> </DIV> </form> </TD> </TR></TABLE>
</body>
</html>
Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved. 闵涛 E_mail:admin@mintao.net(欢迎提供学习资源)
鄂公网安备 42011102001154号
站长:MinTao ICP备案号:鄂ICP备11006601号-18