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="data: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轮播广告的也可用以上方法解决。

上一篇:TableViewCell自适应高度


下一篇:Codeforces Round #363 (Div. 2) A、B、C