第一步:
[Copy to clipboard] [ - ]CODE:
document.writeln ('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" WIDTH='+flashWIDTH+' HEIGHT='+flashHEIGHT+'>');
document.writeln ('<PARAM NAME=movie VALUE="'+flashURL+'">');
document.writeln ('<PARAM NAME=wmode VALUE=transparent>');
document.writeln ('<PARAM NAME=loop VALUE=true>');
document.writeln ('<PARAM NAME=quality VALUE=high>');
document.writeln ('<EMBED src="'+flashURL+'" loop=true wmode=opaque quality=high swLiveConnect=FALSE WIDTH='+flashWIDTH+' HEIGHT='+flashHEIGHT+' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>');
document.writeln ('</OBJECT>');
把這段代碼存為 flash.js 上傳到FTP上.(例如我上傳到FTP的images文件夾里)
---------------------------我是分割線--------------------------------
第二步:
[attach]73190[/attach]
把這個(gè)解壓得到snow.swf上傳到FTP上.(例如我上傳到FTP的images文件夾里)
---------------------------我是分割線--------------------------------
第三步:
[Copy to clipboard] [ - ]CODE:
<div style="LEFT: -50px; POSITION: absolute; TOP: -70px" align=right>
<script language=javascript>
var flashURL="images/snow.swf";
var flashWIDTH="80%";
var flashHEIGHT="250";
</script> <script language=javascript src="images/flash.js"></script></div>
把這段代碼放在<body>后..
注意三個(gè)變量
var flashURL="images/snow.swf"; 這個(gè)是下雪的Flash文件的地址
var flashWIDTH="80%"; 這個(gè)是Flash的寬.
var flashHEIGHT="250"; 這個(gè)是Flash的高.
還有最后一段的js文件(也就是第一步保存下來(lái)的js文件) 的連接地址要正確.
<script language=javascript src="images/flash.js">
更多信息請(qǐng)查看IT技術(shù)專欄