vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Noir BBS - Surf in pure black and white like when you click "log out" (https://vborg.vbsupport.ru/showthread.php?t=70193)

Borgs8472 10-04-2004 09:11 PM

Noir BBS - Surf in pure black and white like when you click "log out"
 
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:)

Brad 10-06-2004 12:42 AM

Quote:

Originally Posted by AN-net
i also wonder how they achieve this must be some kind of dyanmic scripting:)

IIRC the 'trick' only works in IE.

HTML Code:

<script type="text/javascript">
<!--
function log_out()
{
        ht = document.getElementsByTagName("html");
        ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=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

Quote:

Originally Posted by Brad.loo
IIRC the 'trick' only works in IE.

HTML Code:

<script type="text/javascript">
<!--
function log_out()
{
        ht = document.getElementsByTagName("html");
        ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=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

Quote:

Originally Posted by Zachery
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 .


All times are GMT. The time now is 01:04 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01005 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete