guialert.html

来自「asterisk 的图形管理界面」· HTML 代码 · 共 44 行

HTML
44
字号
<script>
function update( ){
	if(  navigator.userAgent.indexOf("MSIE") != -1 ){
		document.body.style.backgroundColor ="#F4EFE5";
	}
	if(top.alertmsgtype == 1 ){
		document.getElementById('message').innerHTML = top.alertmsg ;
		document.getElementById('div_alert').style.display = "" ;
		try{document.getElementById('ok').focus() ;}catch(e){ }
	}
}

function close_guialert( ){
	//top.document.body.removeChild( top.document.getElementById( top.alertframename ) );
	top.document.getElementById( top.alertframename ).style.display = "none";
}
</script>
<head>
</head>
<body onload="update()" topmargin=0 leftmargin=0 style="background-color: transparent; cursor: not-allowed">
	<div id="div_alert" STYLE="display:none; position: absolute; left: 260; top: 180; width:360;  background-color:#FFFFFF; border-width: 2px; border-color: #7E5538; border-style: solid; background-style: solid; cursor: default">
		<table width="100%" cellpadding=0 cellspacing=0>
		<TR bgcolor="#7E5538"  style="background-image:url('images/title_gradient.gif');">
				<TD Height="20" align="center">
				<font style="color:#FFFFFF; font-size: 12px; font-weight:bold;">Alert !</font>
				</TD>
				<TD Height="20" align="right">
					<A href="#" onclick="close_guialert();"><font style="color:#FFFFFF; font-size: 12px; font-weight:bold;">X</font></A>
				</TD>
				<TD width=4></TD>
		</TR>
		</table>
		<TABLE cellpadding=0 cellspacing=3 border=0 width="100%">
		<TR><TD colspan=2 height=10></TD></TR>
		<TR><TD align="right"></TD>
					<TD align="center" bgcolor="#FFFFFF"><div id='message'></div> </TD>
		</TR>
		<TR><TD colspan=2 height=10></TD></TR>
		<TR> <TD align="center" colspan=2> <input type="button" id="ok" onclick="close_guialert()" value="Ok"> </TD>
		<TR><TD colspan=2 height=10></TD></TR>
		</TR>
		</TABLE>
	</div>
</body>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?