Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 6th, 2010, 05:41 AM
Friend of Wrox
Join Date: Apr 2010
Posts: 125
Thanks: 20
Thanked 3 Times in 3 Posts
Default Using Ajax To fade page color to white and back

Hi,Dear Imar
When we click sign out link in p2p forum a message window appear and page colors begin fading to black and white .
How it happen?
Old December 6th, 2010, 05:49 AM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi there,

To find out stuff like this yourself, try this:

1. Open the source for the page and search for Log Out. You'll see something like this:

<a rel="nofollow" href="http://p2p.wrox.com/login.php?do=log...5073fd53f70f05" onclick="return log_out('Are you sure you want to log out?')">Log Out</a>
2. Next, search in the linked JavaScript files for the function called log_out. In this case, you find it in: vbulletin_global.js. The function looks liike this:

function log_out(confirmation_message)
 var ht = document.getElementsByTagName("html")[0];
 ht.style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
 if (confirm(confirmation_message))
  return true;
  ht.style.filter = "";
  return false;
So, it appears it's done with an IE (only) Filter. Just in case you're going to ask how filters work: http://msdn.microsoft.com/en-us/libr...47(VS.85).aspx


Imar Spaanjaars
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!

Similar Threads
Thread Thread Starter Forum Replies Last Post
form back color; saidan C# 2005 12 October 29th, 2007 08:16 AM
background-color: white; covers text smgolden CSS Cascading Style Sheets 6 August 3rd, 2007 12:21 PM
fade in/fade out on a div with JavaScript crmpicco Javascript How-To 1 September 23rd, 2005 04:27 AM
javascript image fade in fade out crmpicco Javascript How-To 0 September 12th, 2005 11:02 AM
How to change the back color of toolbat allenfei BOOK: Professional C#, 2nd and 3rd Editions 3 August 15th, 2005 02:37 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.