一、带有文章标题的
<script type="text/javascript">
<!--
var focus_width=176
var focus_height=225
var text_height=18
var swf_height = focus_height+text_height
var
pics=’http://img1.qq.com/auto/pics/518/518243.jpg|http://img1.qq.com/auto/pics/517/517558.jpg|
http://img1.qq.com/auto/pics/517/517672.jpg|http://img1.qq.com/auto/pics/518/518725.jpg’
var links=’http://auto.qq.com/a/20060602/000014.htm|http://auto.qq.com/a/20060602/000013.htm|
http://auto.qq.com/a/20060602/000017.htm|http://auto.qq.com/a/20060602/000028.htm’
var texts=’两厢福克斯谍照参数曝光|新马6 2.3L SDX Facelift|欧宝Astra GTC/R|韩系车骑了日系车’
document.write(’<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="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=" document.write(’<param name="menu" value="false"><param name=wmode value="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://mat1.qq.com/auto/flash/autof06n.swf" wmode="opaque" FlashVars="pics=’+pics+’&links=’+links+’&texts=’+texts+’&borderwidth=’+focus_width+’&borderheight=’+focus_height+’&textheight=’+text_height+’" menu="false" bgcolor="#DADADA" quality="high" width="’+ focus_width +’" height="’+ swf_height +’" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />’); document.write(’</object>’);
//--> </script>
不带文章标题(playswf.swf)
<!--焦点图开始-->
<script type="text/javascript">
<!--
var focus_width=199
var focus_height=242
var text_height=0
var swf_height = focus_height+text_height
var pics=’http://img1.qq.com/ent/20060601/3639013.jpg|http://img1.qq.com/ent/20060601/3639014.jpg|
http://img1.qq.com/ent/20060531/3636668.jpg|http://img1.qq.com/ent/20060529/3632416.jpg’
var links=’http://ent.qq.com/a/20060601/000102.htm|http://ent.qq.com/a/20060601/000107.htm|
http://ent.qq.com/a/20060531/000108.htm|http://ent.qq.com/a/20060529/000087.htm’
var texts=’|||’
document.write(’<object ID="focus_flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="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=" document.write(’<param name="menu" value="false"><param name=wmode value="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 ID="focus_flash" src="http://auto.qq.com/flash/playswf.swf" wmode="opaque" FlashVars="pics=’+pics+’&links=’+links+’&texts=’+texts+’&borderwidth=’+focus_width+’&borderheight=’+focus_height+’&textheight=’+text_height+’" menu="false" bgcolor="#C5C5C5" quality="high" width="’+ focus_width +’" height="’+ swf_height +’" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />’); document.write(’</object>’);
//-->
</script>
<!--焦点图结束-->
新浪FLASH广告带文章标题(pixviewer.swf)
<!--
var focus_width=277
var focus_height=200
var text_height=20
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="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://image2.sina.com.cn/bj/zonghe/pixviewer.swf" wmode="opaque" FlashVars="pics=’+pics+’&links=’+links+’&texts=’+texts+’&borderwidth=’+focus_width+’&borderheight=’+focus_height+’&textheight=’+text_height+’" menu="false" bgcolor="#F0F0F0" 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广告JS调用代码
<!--
var focus_width=250;
var focus_height=160;
var pics = "图片地址一|图片地址二|图片地址三|图片地址四|图片地址五|";
var links = "链接地址一|链接地址二|链接地址三|链接地址四|链接地址五|";
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="’+ focus_height +’">’);
document.write(’<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="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+’&focus_width=’+focus_width+’&focus_height=’+focus_height+’">’);
document.write(’<embed src="http://cimg.163.com/auto/main-1.swf" wmode="opaque" FlashVars="pics=’+pics+’&links=’+links+’&focus_width=’+focus_width+’&focus_height=’+focus_height+’" menu="false" bgcolor="#D6D3D6" quality="high" width="’+ focus_width +’" height="’+ focus_height +’" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="flashplayer">http://www.macromedia.com