View Full Version : Noir BBS - Surf in pure black and white like when you click "log out"
Borgs8472
10-04-2004, 09:11 PM
I love the underused feature of vb3 that makes the screen go black and white when you click "log out".
It's not a CSS type hack, as it even effects avatars and the logo...
How does it work?
And would it be possible to make it a skin selection or option? Surfing in black and white would be very retro IMO.
nexialys
10-04-2004, 11:54 PM
this is simply a style/skin in no-color way, so guests have that black stuff, and members/logged-in have a colored skin...
AN-net
10-05-2004, 01:22 AM
i also wonder how they achieve this must be some kind of dyanmic scripting:)
i also wonder how they achieve this must be some kind of dyanmic scripting:)
IIRC the 'trick' only works in IE.
<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>
Zachery
10-06-2004, 01:12 AM
IIRC the 'trick' only works in IE.
<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>
It uses a fade filter and the opactity filter and clear.gif to make the screen go grey. Its an IE only feature.
Borgs8472
10-07-2004, 07:00 PM
No cross-browser equivilents?
nexialys
10-07-2004, 08:10 PM
usually, IE is not cross-browser itself, so when a tool is created with the IE functions, it's not working on either the browsers available on the market... this is what we can call an invert-compatible system.
Borgs8472
10-08-2004, 10:46 AM
Like that damn glowing text! Arghh!
MindTrix
10-08-2004, 03:15 PM
It uses a fade filter and the opactity filter and clear.gif to make the screen go grey. Its an IE only feature.
Pretty much what brad loo was saying then :rolleyes:
Zachery
10-08-2004, 07:17 PM
Brad just said it was an IE trick, i explained which IE tricks :p .
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.