ad2.js

来自「商城改进板全站代码」· JavaScript 代码 · 共 35 行

JS
35
字号

 var focus_width=280; //广告轮显宽度
 var focus_height=210;//广告轮显高度
 var text_height=16;  //显示文字高度
 var swf_height = focus_height+text_height
 var pics="";
 var links="";
 var texts="";
 if(window.IndexFlash)
 {
    for(var i=0;i<IndexFlash.length-1;i++)
    {
       if(i< IndexFlash.length-2)
       {
          pics +=IndexFlash[i][1]+"|";
          links+=IndexFlash[i][2]+"|";
          texts+=IndexFlash[i][0]+"|";
       }
       else
       {
          pics+=IndexFlash[i][1];
          links+=IndexFlash[i][2];
          texts+=IndexFlash[i][0];
       }
       
    }
 }
 
 
 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="/IMS_AD/UploadAdPic/focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
 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="/IMS_AD/UploadAdPic/focus.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#BCBCBC" 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>');

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?