• classid是“d27cdb6eae6d11cf96b8444553540000”的图片轮换代码去掉黑色边框[摘自布布分享,tech.bubufx.com]


       轮换广告用的最广的就属这款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>
     


  • 相关阅读:
    【CF-148E】Porcelain DP
    【CF-687C】The Values You Can Make 01背包变形
    【CF-269】B. Greenhouse Effect 最公共子序列
    【CF-1345】C.Hilbert's Hotel 数论
    【CF-607B】Zuma 经典区间DP
    【【模板】三分法】
    【CF-1355 E.Restorer Distance】三分,贪心
    【CF-1355 BCount Triangles】枚举
    【CF-1355 Sequence with Digits】
    触发器的类型有哪三种?
  • 原文地址:https://www.cnblogs.com/weekzero/p/3043759.html
Copyright © 2020-2023  润新知