JavaScript
实现半透明效果!
2006-07-20 04:05:21
大中小
<html>
<body style="background-image:url(http://bbs.51js.com/images/51js.gif);background-color:#E9EDF7">
<script>
function msgbox(msg){
document.body.style.filter='alpha(opacity=40) gray';
confirm(msg); //或者其他打开对话框的函数
document.body.style.filter='';
}
setTimeout("msgbox('待机 关闭 重新启动')",500)
</script>
<a href="javascript:msgbox('待机 关闭 重新启动')">关机!</a>
</body>
</html>
> >