网站制作学习网Flash→正文:搜狐体育频道FLASH广告JS调用代码
字体:

搜狐体育频道FLASH广告JS调用代码

Flash 2008/1/7 11:18:56  点击:不统计

<!--

var focus_width=240

var focus_height=190

var text_height=21

var swf_height = focus_height+text_height

var pics=’图片地址一|图片地址二|图片地址三|图片地址四|图片地址五’

var links=’链接地址一|链接地址二|链接地址三|链接地址四|链接地址五’

var texts=’文字标题一|文字标题二|文字标题三|文字标题四|文字标题五’

document.write(’<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"

codebase="flash/swflash.cab#version=6,0,0,0">

http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"

width="’+ focus_width +’" height="’+ swf_height +’">’);

document.write(’<param name="allowScriptAccess" value="sameDomain"><param name="movie"

value="

http://business.sohu.com/upload/focus.swf"> <param name="quality" value="high">

<param name="bgcolor" value="#CCCCCC">’);

document.write(’<param name="menu" value="false"><param name=wmode value=

"http://blog.techweb.com.cn/opaque">’);

document.write("<param name="FlashVars" value="pics=’+pics+’&links=’+links+’

&texts=’+texts+’&borderwidth=’+focus_width+’&borderheight=’+focus_height+’

&textheight=’+text_height+’">’);

document.write(’<embed src="http://business.sohu.com/upload/focus.swf" wmode=

"opaque" FlashVars="pics=’+pics+’&links=’+links+’&texts=’+texts+’

&borderwidth=’+focus_width+’&borderheight=’+focus_height+’&textheight=’

+text_height+’" menu="false" bgcolor="#ffffff" quality="high" width="’+ focus_width +’

" height="’+ swf_height +’" allowScriptAccess="sameDomain" type=

"application/x-shockwave-flash" pluginspage="flashplayer">

http://www.macromedia.com/go/getflashplayer" />’); document.write(’</object>’);

//-->

·上一篇:新浪FLASH广告带文章标题 >>    ·下一篇:怎么给网页中的Flash上加超连接 >>
推荐文章
最新文章