zoukankan      html  css  js  c++  java
  • 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>
     


  • 相关阅读:
    小程序发展史
    ES6内置方法find 和 filter的区别在哪
    微信小程序开发踩坑记录
    小程序导航跳转一不小心踩进的坑
    谈谈如何对后台登陆界面进行渗透
    应急响应学习笔记
    php学习笔记
    代码审计学习笔记
    注入笔记(非sql注入)
    python安全编程学习
  • 原文地址:https://www.cnblogs.com/weekzero/p/3043759.html
Copyright © 2011-2022 走看看