- <html>
- <head>
- <script type="text/javascript">
- var total =6;
- var min =1;
- var num=1;
- function init(){
- change(min);
- }
- function pre(){
- num--;
- if(num<min){
- num=total;
- }
- change(num);
- }
- function next(){
- num++;
- if(num>total){
- num=min;
- }
- change(num);
- }
- function change(i){
- var flashstr="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"996\" height=\"737\"><param name=\"movie\" value=\"swf/"+i+".swf\" /><param name=\"quality\" value=\"high\" /><embed src=\"swf/"+i+".swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"996\" height=\"737\"></embed></object>";
- document.getElementById("flash").innerHTML=flashstr;
- }
- </script>
- </head>
- <body onload="init()">
- <table width="1000" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td colspan="2"><div id="flash"></div></td>
- </tr>
- <tr>
- <td><div align="center"><img src="swf/2.jpg" width="61" height="55" onclick="pre()" /></div></td>
- <td><div align="center"><img src="swf/1.jpg" width="61" height="55" onclick="next()" /></div></td>
- </tr>
- </table>
- </body>
- </html>
通过js来切换flash
最新推荐文章于 2023-10-01 10:10:00 发布