View Full Version : how to change screen to monochrome on logout?
jeffj
11-13-2006, 05:01 PM
I like VB's logout function that turns the screen monochrome....
how is this done?
can it be down with javascript code?
nico_swd
11-13-2006, 06:39 PM
Taken from the source code.
<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
if (confirm('Are you sure you want to log out?'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>
This won't work on Firefox though.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.