2007年6月3日

可以能通过 focus.swf 产生如上图所示的广告,其调用代码如下:
<script type="text/javascript">
<!--
var focus_width = 375; // 图片宽度
var focus_height= 500; // 图片高度
var text_height = 20; // 显示的文字高度
var swf_height = focus_height + text_height;
var pics ="3643603.jpg|3644310.jpg|3647102.jpg|3649097.jpg|3646832.jpg|3649095.jpg|3649096.jpg";
var links="3643603.jpg|3644310.jpg|3647102.jpg|3649097.jpg|3646832.jpg|3649095.jpg|3649096.jpg";
var texts="3643603.jpg|3644310.jpg|3647102.jpg|3649097.jpg|3646832.jpg|3649095.jpg|3649096.jpg";
document.write(''<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '');
document.write(''codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" '');
document.write(''width="''+ focus_width +''" '');
document.write(''height="''+ swf_height +''">'');
document.write(''<param name="allowScriptAccess" value="sameDomain">'');
document.write(''<param name="movie" value="focus.swf">'');
document.write(''<param name="quality" value="high">'');
document.write(''<param name="bgcolor" value="#ffffff">'');
document.write(''<param name="menu" value="false">'');
document.write(''<param name=wmode value="opaque">'');
document.write(''<param name="FlashVars" '');
document.write(''value="pics=''+pics);
document.write( ''&links=''+links);
document.write( ''&texts=''+texts);
document.write( ''&borderwidth=''+focus_width);
document.write( ''&borderheight=''+focus_height);
document.write( ''&textheight=''+text_height+''">'');
document.write(''<embed src="focus.swf" '');
document.write(''wmode="opaque" '');
document.write(''FlashVars="pics=''+pics);
document.write( ''&links=''+links);
document.write( ''&texts=''+texts);
document.write( ''&borderwidth=''+focus_width);
document.write( ''&borderheight=''+focus_height);
document.write( ''&textheight=''+text_height+''" '');
document.write(''menu="false" '');
document.write(''bgcolor="#ffffff" '');
document.write(''quality="high" '');
document.write(''width="''+ focus_width +''" '');
document.write(''height="''+ focus_height +''" '');
document.write(''allowScriptAccess="sameDomain" '');
document.write(''type="application/x-shockwave-flash" '');
document.write(''pluginspage="http://www.macromedia.com/go/getflashplayer" />'');
document.write(''</object>'');
//-->
</script>
--------------------------
作者:朱亦文

0 回复,0 引用: 使用FLASH创建动态切换多图广告
添加回复