Home > Web Front-end > JS Tutorial > 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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 19:06:51
Original
1063 people have browsed it

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>

Related labels:
Statement of this Website
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
Latest Issues
What are JavaScript hook functions?
From 1970-01-01 08:00:00
0
0
0
What is JavaScript garbage collection?
From 1970-01-01 08:00:00
0
0
0
c++ calls javascript
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template