第一步:
[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]
把这个解压得到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>后..
注意三个变量
var flashURL="images/snow.swf"; 这个是下雪的Flash文件的地址
var flashWIDTH="80%"; 这个是Flash的宽.
var flashHEIGHT="250"; 这个是Flash的高.
还有最后一段的js文件(也就是第一步保存下来的js文件) 的连接地址要正确.
<script language=javascript src="images/flash.js">
中国足彩网信息请查看IT技术专栏