TimeLord

有志者,事竟成,卧薪尝胆,百二秦关终属楚; 苦心人,天不负,破斧沉舟, 三千越甲可吞吴!

IT博客 首页 新随笔 联系 聚合 管理
  1 Posts :: 38 Stories :: 0 Comments :: 0 Trackbacks

 

<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
<title>弹出特效</title> 
</head> 
<script> 
var falpha=0;
function fchange(){
if(falpha!=90){
    table1.style.filter
="alpha(opacity="+falpha+")";
    falpha
=falpha+10;
    setTimeout(
"fchange()",200)
}
else
    falpha
=0;
  }
}
function sss(){
    table1.style.height
=(window.document.body.clientHeight>window.document.body.scrollHeight)?window.document.body.clientHeight:window.document.body.scrollHeight;
    table1.style.width
="100%";
    table1.style.display
='block';
    table2.style.left
=window.document.body.scrollWidth/2-100;
    table2.style.top
=window.document.body.offsetHeight/2-100
    table2.style.display
='block';
    fchange();
}

function freset(){
table1.style.display
='none'
table2.style.display
='none'
}

</script> 
<body topmargin=0 leftmargin=0 bgcolor=yellow style="display:block;"> 
<table id="table1" style="background:#FFFFFF;display:none;position:absolute;z-index:1;filter:alpha(opacity=90)" oncontextmenu="return false"> 
<tr width=100% height=100%> 
<td> 

</table> 

<table oncontextmenu="return false" id="table2" border="2" style="background:#E1E100;border-color:red;display:none;position:absolute;z-index:2;width:200;height:100;" cellspacing="0" cellpadding="0" bordercolor="#800000"> 
<tr width=150 height=20> 
<td align="right" borderColor="#E1E100"> 
<input type="button" onclick="freset()" value='确定'> 
</td><td borderColor="#E1E100"><input type="button" onclick="freset()" value='取消'></td> 
</tr> 
</table> 
<input type="button" onclick="sss()" value='申请提交'> 
</p> 

</body> 
</html> 

 

posted on 2007-10-08 20:36 TimeLord 阅读(355) 评论(0)  编辑 收藏 引用 所属分类: 网页设计