以下代码如何兼容FireFox浏览器

[复制链接]
查看11 | 回复2 | 2015-6-12 14:16:33 | 显示全部楼层 |阅读模式
function openWithIframe(tit,url,w,h){

//屏幕变暗
var sWidth,sHeight;
sWidth=document.body.clientWidth;
sHeight=document.body.scrollHeight;
if(sHeight'
// popiframe += ''
popiframe += ''
popiframe += ''+tit+''
popiframe += '关闭 X'
popiframe += ''
popiframe += ''
popiframe += ''

massage_box.innerHTML=popiframe;

massage_box.style.display = "";
}
function closeWithIframe(){

massage_box.style.display="none";

document.body.removeChild(document.getElementById("bgDiv"));
}
document.write('loading...');

回复

使用道具 举报

千问 | 2015-6-12 14:16:33 | 显示全部楼层
您好,感谢您对火狐的支持这个特效使用jQuery 库实现更方便,可以参考:http://www.ajaxupdates.com/lights-out-dimming-covering-background-content-with-jquery/您可以在火狐官方网站下载火狐浏览器,在火狐社区了解更多内容。希望我的回答对您有所帮助,如有疑问,欢迎继续在本平台咨询。
回复

使用道具 举报

千问 | 2015-6-12 14:16:33 | 显示全部楼层
建议直接用 jQuery 库 demo: http://buildinternet.com/live/lightsout/解说:http://www.ajaxupdates.com/lights-out-dimming-covering-background-content-with-jquery/
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行