Log in

View Full Version : strange code i found


Keyser S?ze
07-30-2007, 01:54 AM
does anyone know what this goes to or why it is here, i found it in my navbar template

<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>

thanks

quiklink
07-30-2007, 02:09 AM
It turns the page to grayscale when you log out in IE. Kind of a neat effect

Dismounted
07-30-2007, 06:23 AM
Too bad it's IE-only code...