在用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”, “{#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轮播广告的也可用以上方法解决。
最新评论
$viewrnd=rand(2,5); 这个是重点
多年前亲测有用,现在你只能网上再找找了,注意版本号
亲测无效。。
www.jiaobanjiyh.com 香港服务器的站一直不收录,哪位大佬知道是怎么回事
www.jiaobanjiyh.com 香港服务器的站一直不收录,哪位大佬知道是怎么回事
www.jiaobanjiyh.com 香港服务器的站一直不收录,哪位大佬知道是怎么回事
Thanks for your 50 user license! That is great useful inform
复制了两段代码后直接前后台都你的网站遇到致命错误。。。