• FLASH轮播广告 在谷歌浏览器中不显示的解决办法(FLash轮播放广告在谷歌浏览器中无法显示处理方法)


    在用PHPWEB模板的时候,碰到首页有一个FLASH轮播广告,在IE浏览器下可以正常显示播放,在谷歌浏览器中却显示不了,解决办法如下:
    欢迎转载:
    http://blog.csdn.net/aminfo/article/details/9721875


    1、找到advs/templates/tpl_advsflashlb.htm这个文件;
    2、将这个文件的原内容如下:

    <!-start->
    <script type=text/javascript src="{#CP#}js/advsflashlb.js"></script>
    <div id="swfContent"></div>
    <script type="text/javascript">
     var xmlData="{#xmlData#}";
     
     var flashvars = {xmlData:xmlData};
     var params = {menu:false,wmode:"opaque"};
     var attributes = {};
     swfobject.embedSWF("images/advsflashlb.swf", "swfContent", "{#picw#}", "{#pich#}", "6","expressInstall.swf", flashvars, params, attributes);
    </script>
    <!-start->


     修改为新内容如下:

    <!-start->
    <script type=text/javascript src="{#CP#}js/advsflashlb.js"></script>
    <script type="text/javascript">
     var xmlData="{#xmlData#}";
     
     var flashvars = {xmlData:xmlData};
     var params = {menu:false,wmode:"opaque"};
     var attributes = {};
     //swfobject.embedSWF("images/advsflashlb.swf", "swfContent", "{#picw#}", "{#pich#}", "6","expressInstall.swf", flashvars, params, attributes);
    
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" style="VISIBILITY: visible" width="{#picw#}" height="{#pich#}" id="swfContent">');
     document.write('<param name="movie" value="images/advsflashlb.swf"><param name="quality" value="high">');
     document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
     document.write('<param name="FlashVars" value="xmlData={#xmlData#}">');
     document.write('<embed src="images/advsflashlb.swf" wmode="opaque" FlashVars="xmlData={#xmlData#}" menu="false" quality="high" width="{#picw#}" height="{#pich#}" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');    
    document.write('</object>');  
     
    </script>
    <!-start->
    


    现在360浏览器客户端有好多也是用谷歌浏览器的内核,所以360浏览器不支持FLASH轮播广告的也可用以上方法解决。
     

  • 相关阅读:
    as3 变量默认值
    as3 判断移动方向
    as3 根据鼠标移动方向
    as3 XML类和XMLList类的区别
    as3 文档类判断是否被加载
    AS3获取对象类名,getDefinitionByName,getQualifiedClassName,getQualifiedSuperclassName
    as3 object与dictionary区别
    吹芯片
    stm32四种输入
    usart和uart 的区别
  • 原文地址:https://www.cnblogs.com/riskyer/p/3233729.html
Copyright © 2020-2023  润新知