Home > Web Front-end > JS Tutorial > body text

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

WBOY
Release: 2016-05-16 19:06:51
Original
1003 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:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template