我写的代码如下,就是不能轮回显示,请个位指导:
function rnd()
{
rnd.today = new Date();
rnd.seed = rnd.today.getTime();
rnd.seed = (rnd.seed * 9301 + 49297) % 233280;
return rnd.seed/(233280.0);
}
function rand(number)
{
return Math.ceil(rnd() * number);
}var fileName = new Array();
var i;fileName[0] = "images/507_233.swf";
fileName[1] = "images/sootvflash2.swf";
//fileName[2] = "/images/flyz244.swf";
//fileName[3] = "/images/wlwz210.swf";i = rand(fileName.length) - 1;document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="503" height="230">');
document.write('<param name="movie" value="' + fileName[i] + '">');
document.write('<param name="quality" value="high">');
document.write('<param name="wmode" value="opaque">');
document.write('<embed src="images/afxc.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="503" height="230"></embed>');
document.write('</object>');
function rnd()
{
rnd.today = new Date();
rnd.seed = rnd.today.getTime();
rnd.seed = (rnd.seed * 9301 + 49297) % 233280;
return rnd.seed/(233280.0);
}
function rand(number)
{
return Math.ceil(rnd() * number);
}var fileName = new Array();
var i;fileName[0] = "images/507_233.swf";
fileName[1] = "images/sootvflash2.swf";
//fileName[2] = "/images/flyz244.swf";
//fileName[3] = "/images/wlwz210.swf";i = rand(fileName.length) - 1;document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="503" height="230">');
document.write('<param name="movie" value="' + fileName[i] + '">');
document.write('<param name="quality" value="high">');
document.write('<param name="wmode" value="opaque">');
document.write('<embed src="images/afxc.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="503" height="230"></embed>');
document.write('</object>');
解决方案 »
- if(event.target==this) 困惑求解?
- 帮忙看一下js的进度条代码
- Jquery问题求教
- JS验证错误警告,求高人帮忙~
- 框架(top、main、bottom),main中(left、right),right如何返回登录页面
- jquery 什么情况下用这个比较合算?
- ckeditor 3.0的图片上传功能好使吗?
- 如何用JS获取下拉框中被选中的列的名称?
- [讨论]常用胖客户端js库之间转换[整合]有什么好办法
- [求助]如何使用javascript实现调用<iframe>中的变量
- js window.open前,可以先判断open过了,就不open吗?
- name属性为数字。。。
新建一个空的FLASHvar myswf=new Array("1.swf","2.swf","3.swf");
_root.loadMovie(myswf[random(myswf.length)]);