Have there any javascript or any way to make a full page or site colorless (black/white)? Please see the attached image. Actually I want to make my site colorless for one day only. Also please tell me is it possible to make everything colorless except one image. PLEASE HELP ME.
Unfortunately it isn't possible. The only way is to do this is manually. Server-side scripting could help in doing this, but manual work would still be required.
After some searching, I found this method to make a greyscale webpage. Easy enough to do with IE but other browsers are a pain. This demo only works in IE. <html> <head> <style type="text/css"> body { filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); zoom: 1; /* hasLayout */ } h1 { color: red; } p { color: blue; } </style> </head> <body> <h1>Heading</h1> <p>This is a line of text</p> <img src="image.jpg"> </body> </head> Code (markup): There are other methods (SVG filter, canvas) but I had trouble getting them to work.