Flash SWF Banner旋转问题

时间:2014-08-14 10:56:51

标签: javascript html flash banner

我的代码在让我的三个SWF横幅旋转时遇到问题,目前它只是在每个页面刷新时显示一个横幅,我希望它在页面上一个接一个地浏览所有三个SWF横幅。

以下当前代码:

<script language="javascript">

files = new Array();

files[0] = "https://f88a4ec1239322f1b0543150463705209caf87a8.googledrive.com/host/0BzJtTNkbexMAcU9STWNpU2dQX1E/CS_0814_VG_Sky.swf";

files[1] = "https://f88a4ec1239322f1b0543150463705209caf87a8.googledrive.com/host/0BzJtTNkbexMAcU9STWNpU2dQX1E/NMM_SCS_0814_VG_Sky.swf";

files[2] = "https://f88a4ec1239322f1b0543150463705209caf87a8.googledrive.com/host/0BzJtTNkbexMAcU9STWNpU2dQX1E/QH_tea_banner_v5.swf";

index = Math.floor(Math.random() * files.length);

movie = files[index];


document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width=225 height=600>');


document.write('<param name=movie value="' + movie + '"> <param name=quality value=high> <param name=bgcolor value=#ffffff> <param name="menu" value="false">');


document.write('<embed src="' + movie + '" quality=high  menu=false width=225 height=600 type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>');
document.write('</object>');

</script>

任何帮助都会很棒,谢谢!

0 个答案:

没有答案