
对联式浮动广告 不兼容firefox(火狐)浏览器,在火狐下不显示
document.ns=navigator.appName=="MicrosoftInternetExplorer"varimgheightwindow.screen.w...
document.ns = navigator.appName == "Microsoft Internet Explorer"
var imgheight
window.screen.width>800 ? imgheight=100:imgheight=100
function myload()
{
myright.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
myright.style.left=document.body.offsetWidth-120;
mymove();
}
function mymove()
{
myright.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
myright.style.left=document.body.scrollLeft+document.body.offsetWidth-120;
setTimeout("mymove();",50)
}
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true)
if(document.ns){
if(ad_float_right_type!="swf")
document.write("<div id=myright style='position: absolute;width:80;top:0;left:578;visibility: visible;z-index: 1'><a href='" + ad_float_right_url + "' target = '_blank'><img src='" + ad_float_right_src + "' WIDTH=80 HEIGHT=80 border = 0></a></div>");
else
document.write("<div id=myright style='position: absolute;width:80;top:0;left:578;visibility: visible;z-index: 1'><EMBED src='" + ad_float_right_src + "' quality=high WIDTH=80 HEIGHT=80 TYPE='application/x-shockwave-flash'></EMBED></div>");
myload()
} 展开
var imgheight
window.screen.width>800 ? imgheight=100:imgheight=100
function myload()
{
myright.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
myright.style.left=document.body.offsetWidth-120;
mymove();
}
function mymove()
{
myright.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
myright.style.left=document.body.scrollLeft+document.body.offsetWidth-120;
setTimeout("mymove();",50)
}
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true)
if(document.ns){
if(ad_float_right_type!="swf")
document.write("<div id=myright style='position: absolute;width:80;top:0;left:578;visibility: visible;z-index: 1'><a href='" + ad_float_right_url + "' target = '_blank'><img src='" + ad_float_right_src + "' WIDTH=80 HEIGHT=80 border = 0></a></div>");
else
document.write("<div id=myright style='position: absolute;width:80;top:0;left:578;visibility: visible;z-index: 1'><EMBED src='" + ad_float_right_src + "' quality=high WIDTH=80 HEIGHT=80 TYPE='application/x-shockwave-flash'></EMBED></div>");
myload()
} 展开
2个回答
展开全部
火狐有很多脚本是不支持的。我的程序现在也遇到了这种问题,还更严重了。你可以试试改改javascript,我的有个地方document.onreadystatechange = function() {
resize();
} 这样改了,就对了一点点,你试试吧,只能帮你这么多了
resize();
} 这样改了,就对了一点点,你试试吧,只能帮你这么多了
展开全部
您好!很高兴为您答疑!
建议使用JS实现这个效果,兼容性更好,您可以参考:http://ivy2012520.blog.163.com/blog/static/187246328200824148045/,略做修改就可以直接使用。
您可以在火狐社区了解更多内容。希望我的回答对您有所帮助,如有疑问,欢迎继续在本平台咨询。
建议使用JS实现这个效果,兼容性更好,您可以参考:http://ivy2012520.blog.163.com/blog/static/187246328200824148045/,略做修改就可以直接使用。
您可以在火狐社区了解更多内容。希望我的回答对您有所帮助,如有疑问,欢迎继续在本平台咨询。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询