HTML color->monochrome

The vBulletin style the SDMB uses employs this technique in the Log Out link. You click, and a confirmation box appears, and in the background, the page turns monochrome.

How do I do this?

Looks like a bit of javascript. From a View Source:


<script type="text/javascript">
<!--
function log_out()
{
	ht = document.getElementsByTagName("html");
	**ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";**
	if (confirm('Are you sure you want to log out?'))
	{
		return true;
	}
	else
	{
		ht[0].style.filter = "";
		return false;
	}
}
//-->
</script>

The bolded statement appears to do the dirty work here.

…and I’m quite the fool. Thanks for pointing out my obvious inability to recognize the… obvious. :smiley:

But, really, thanks. :smiley:

It’s also worth mentioning that this is IE specific functionaility.