扫一扫加微信

PHPWEB模板中FLASH轮播广告不显示图片解决方法

在用PHPWEB模板的时候,碰到首页有一个FLASH轮播广告,在IE浏览器下可以正常显示播放,在谷歌浏览器中却显示不了,解决办法如下:

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”, “{#w#}”, “{#h#}”, “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=”{#w#}” height=”{#h#}” type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer” />’);
document.write(‘</object>’);

</script>
<!-start->

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

评论

7+7=