日期:2014-05-18  浏览次数:20500 次

请问如下网站的效果(可以挡住一切的层),怎么作的(直接说,就要是代码)。重金100分重金100分
http://idate.163.com/viewuser.jsp?id=4464116

以上地址的“和她约会”那个按钮,一点就出现了效果,它可能挡住一切。

我把网站另存为了,可是只要动一点代码就不好使了。请比较熟悉JS的朋友,给简化一下代码。只要一个按钮和jS效果就行了,别的都不要了。

把代码粘贴到这个贴子上就行了。看到后,好使就给分。

------解决方案--------------------
昨天发现一个可能的挡住的。在这个基础上再实现个人的作法比较好
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN ">
<HTML>
<HEAD>
<TITLE> </TITLE>
</HEAD>

<BODY>
<form action= "# ">
<input name=btn1 type=button value=有自定义按钮 onclick=showalert1();>
<input name=btn2 type=button value=无自定义按钮 onclick=showalert2();>

</form>
<script language= "javascript ">
<!--
function gourl(e){
switch(e){
case 1:
window.alert( "点击了确定按钮. ");
break;
case 2:
break;
case 3:
window.alert( "点击了其它按钮. ");
break;
default:
break;
}
}

function showalert1(){
var Br = new innerMessageBox();
Br.ShowModal( "带第三个按钮的示例 ", "您确定要删除该项吗? ", 320, 120, "gourl($) ", "重试 ");
}

function showalert2(){
var Br = new innerMessageBox();
Br.ShowModal( "默认两个按钮的示例 ", "您确定要删除该项吗? ", 320, 120, "gourl($) ");
}
//-->
</script>
<script>
<!--
function innerMessageBox(){
var BackObject, FormObject;

// 检查页面中是否存在该控件.
function checkIMBObject(){
if (document.getElementById( "imb_Background ")==null){
document.body.innerHTML += " <iframe id=\ "imb_Background\ " src=\ "about:blank\ " style=\ "position:absolute;left:0;top:0;width:0px;height:0px;visibility:hidden;\ " frameborder=\ "0\ "> </iframe> ";
window.imb_Background.document.open();
window.imb_Background.document.write( " <html> <body bgcolor=red> &nbsp;sdfasdfasdf </body> </html> ");
window.imb_Background.document.close();
}
if (document.getElementById( "imb_FormModal ")==null){
document.body.innerHTML += " <iframe id=\ "imb_FormModal\ " src=\ "about:blank\ " style=\ "position:absolute;left:0;top:0;width:0px;height:0px;visibility:hidden;border-bottom:2px solid #999999;border-right:2px solid #999999;border-top:1px solid #F8F6C1;border-left:1px solid #F8F6C1;\ " frameborder=\ "0\ "> </iframe> ";
window.imb_FormModal.document.open();
window.imb_FormModal.document.write( " <html> <head> <style> <!-- ");
window.imb_FormModal.document.write( "td{font-size:12px; ");
window.imb_FormModal.document.write( "//--> </style> </head> <body scroll=no leftmargin=0 topmargin=0> ");
window.imb_FormModal.document.write( " <table width=100% height=100% bgcolor=\ "#eeeeee\ "> <tr> <td align=left bgcolor=#3A80F3> <div id=\ "imb_Title\ " style=\ "padding-left:3px;padding-right:3px;color:white;font-family:verdana;\ "> &quo