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>
     


  • 相关阅读:
    unity, sceneview 中拾取球体gizmos
    C#, float.ToString()的一个坑
    unity, SerializedObject.FindProperty不要写在Editor的OnEnable里,要写在OnInspectorGUI里
    unity, 查看.anim中的动画曲线(和帧)
    unity, Graphics.Blit (null, null, mat,0);
    unity, GL.TexCoord or GL.Color must put before GL.Vertex!!!
    (MyEclipse) MyEclipse完美破解方法(图)
    博客园kubrick主题
    sina微博加入到博客园
    MyEclipse 2014 破解图文详细教程
  • 原文地址:https://www.cnblogs.com/weekzero/p/3043759.html
Copyright © 2011-2022 走看看