找回密碼
 註冊
搜索
查看: 4579|回復: 0

網頁中亂數載入.swf檔

[複製鏈接]
發表於 2005-9-19 16:15:27 | 顯示全部樓層 |閱讀模式
  1. [color=#800000]<script language=[/color][color=#0000ff]"JavaScript"[/color][color=#800000] type=[/color][color=#0000ff]"text/JavaScript"[/color][color=#800000]>[/color]
  2. [i][color=#000080]<!-- Random Flash Begin //-->[/color][/i]
  3. FlashFiles = new Array("@@Flash1.swf","@@Flash2.swf", "@@Flash3.swf")
  4. imgCt = FlashFiles.length
  5. function chooseFlash(){
  6. if (document.images){
  7. randomNum = Math.floor((Math.random() * imgCt))
  8. document.writeln('[color=#000080]<object classid=[color=#0000ff]"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"[/color] codebase=[color=#0000ff]"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"[/color] name=[color=#0000ff]"myFlashFile"[/color] width=[color=#0000ff]"@@Your Files Width"[/color] height=[color=#0000ff]"@@Your Files Height"[/color] menu=[color=#0000ff]"false"[/color] id=[color=#0000ff]"myFlashFile"[/color]>[/color]')
  9. document.writeln('[color=#000080]<param name=[color=#0000ff]"movie"[/color] value=[color=#0000ff]"' + FlashFiles[randomNum] + '"[/color]>[/color]')
  10. document.writeln('[color=#000080]<param name=[color=#0000ff]"quality"[/color] value=[color=#0000ff]"high"[/color]>[/color]')
  11. document.writeln('[color=#000080]<param name=[color=#0000ff]"menu"[/color] value=[color=#0000ff]"false"[/color]>[/color]')
  12. document.writeln('[color=#000080]<embed src=[color=#0000ff]"' + FlashFiles[randomNum] + '"[/color] width=[color=#0000ff]"@@Your Files Width"[/color] height=[color=#0000ff]"@@Your Files Height"[/color] quality=[color=#0000ff]"high"[/color] menu"flase" pluginspage=[color=#0000ff]"http://www.macromedia.com/go/getflashplayer"[/color] type=[color=#0000ff]"application/x-shockwave-flash"[/color] name=[color=#0000ff]"myFlashFile"[/color]>[/color][color=#000080]</embed>[/color]')
  13. document.writeln('[color=#000080]</object>[/color]')
  14. }
  15. }
  16. [i][color=#000080]<!-- Random Flash End //-->[/color][/i]
  17. [color=#800000]</script>[/color]
複製代碼


在插入點加入
  1. [color=#800000]<script>[/color]chooseFlash()[color=#800000]</script>[/color]
複製代碼
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

Archiver|手機版|彩色筆小沛的知識庫

GMT+8, 2024-12-22 16:32 , Processed in 0.018394 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回復 返回頂部 返回列表