轮换广告用的最广的就属这款classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"的,加入后很多时候出现褐色的边框线,很是不美观,去掉方法之一如下
方法描述:将【borderwidth】加一个像素,【borderheight】加两个像素,如下,部分代码【borderwidth=’ + (focus_width+1) + ’&borderheight=’ + (focus_height+2) + ’&】,详细看下边:
<script type="text/javascript"> imgUrl1 = "images/01.jpg"; imgtext1 = "布布分享最新电影" imgLink1 = escape("http://www.bubufx.com/ixinlist_1_1.html"); imgUrl2 = "images/02.jpg"; imgtext2 = "布布分享最新电视剧" imgLink2 = escape("http://www.bubufx.com/ixinlist_2_1.html"); var focus_width = 990 var focus_height = 313 var text_height = 18 var swf_height = focus_height + text_height var pics = imgUrl1 + "|" + imgUrl2 var links = imgLink1 + "|" + imgLink2 var texts = imgtext1 + "|" + imgtext2 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="images/focus1.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">’); document.write(’<param name="menu" value="false"><param name=wmode value="transparent">’); document.write(’<param name="FlashVars" value="pics=’ + pics + ’&links=’ + links + ’&texts=’ + texts + ’&borderwidth=’ + (focus_width+1) + ’&borderheight=’ + (focus_height+2) + ’&textheight=’ + text_height + ’">’); document.write(’</object>’); </script>