注:页面头部必须加上
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
否则效果不能实现
a href="#" onclick='return log_out()'安全退出/a
script language="JavaScript"
!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
if (confirm('你确定要退出管理?'))
{
window.location.href="Logout.asp";
}
else
{
ht[0].style.filter = "";
return false;
}
}
--
/script 猜你喜欢