我写的代码如下,就是不能轮回显示,请个位指导:
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>');
解决方案 »
- 跪求高人帮忙看看一个关于层的问题!@!!
- vs中浏览页面跟直接打开htm文件的区别?
- 关于JS读取本地cookie
- 正则表达式匹配含有s但不含油t单词
- 全局变量如何获取用户输入的值
- 在javascript语句内,第三层引号应该怎么写?
- 武汉地区高薪诚聘JavaScript工程师:熟练使用javascript(及面向对象的javascript编程),制作动态html
- wshshell.sendkeys好像把字符都送到缓冲区里面了,有没有立即让他生效的函数?
- 请问js里怎么引用上一级对象?
- 【求助】窗体大小改变后触发事件?
- js window.open前,可以先判断open过了,就不open吗?
- name属性为数字。。。
新建一个空的FLASHvar myswf=new Array("1.swf","2.swf","3.swf");
_root.loadMovie(myswf[random(myswf.length)]);