Fire Dragon Posted January 26, 2006 Share Posted January 26, 2006 Hi!I want know,is there code,what turns screen to example comletely black,and after some seconds,turns it back?It would be nice,if it can turn full screen to black (or any other color),but if it can be turn browser window completely black,it would be nice too I know that I can make this changing background color,but I don't know right code However,if there is code what fills screen completely black,I use that Thanks for help! Link to comment Share on other sites More sharing options...
scott100 Posted January 26, 2006 Share Posted January 26, 2006 This should do the trick<html><head><script language="JavaScript" type="text/javascript">//<![CDATA[function setAlarms() { document.bgColor="black"; window.setTimeout('document.bgColor="white"',2*1000);}//]]></script></head><body onload="setAlarms();"></body></html> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now