关闭

FLASH广告完全揭密 搜狐体育频道FLASH广告JS调用代码

2826人阅读 评论(0) 收藏 举报

 作者:dlwyingtao   

1.带有文章标题的(autof06n.swf)
 
<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>
 
===========================================================================
2.不带文章标题(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>
 <!--焦点图结束-->
 
===========================================================================
3.新浪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>’);
//-->
 
===========================================================================
4.网易汽车频道FLASH广告
<!--
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/go/getflashplayer" />’);
document.write(’</object>’);
//-->

注意,细心的朋友可以看出网易汽车频道FLASH广告JS调用代码和以上门户网站的区别吗?

===========================================================================
5.搜狐体育频道FLASH广告JS调用代码
<!-- 
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>’);
//-->
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:16506次
    • 积分:263
    • 等级:
    • 排名:千里之外
    • 原创:10篇
    • 转载:1篇
    • 译文:0篇
    • 评论:2条