Home  >  Article  >  Web Front-end  >  JavaScript clicks to make the entire page gray (can be used as an exit effect). _javascript skills

JavaScript clicks to make the entire page gray (can be used as an exit effect). _javascript skills

WBOY
WBOYOriginal
2016-05-16 19:06:51993browse

Click to make the entire page gray (can be used to exit).
Note:
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
must be added to the header of the page, otherwise the effect cannot be achieved

Safe exit
<script> <BR><!-- <BR>function log_out() <BR>{ <BR> ht = document.getElementsByTagName("html"); <BR> ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)"; <BR> if (confirm('你确定要退出管理?')) <BR> { <BR> window.location.href="Logout.asp"; <BR> } <BR> else <BR> { <BR> ht[0].style.filter = ""; <BR> return false; <BR> } <BR>} <BR>--> <BR></script>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn