HTML & CSS Snippets

Name:Random Body BG Color
Description: This will display random body background color every 1 second, very annoying =)

Code below...
<!--- Save the code below -->
<!-- Open it -->
<!-- Stare at it =) -->

<html>
<head>
<title>What?</title>
<script>
function randomcolor() {
document.bgColor=Math.round(Math.random()*16777215).toString(16);document.fgColor=Math.round(Math.random()*16777215).toString(16);setTimeout("randomcolor();",100)
}
</script>
</head>
<body onload="randomcolor()">
<span style="font: bold 50px solid tahoma,verdana,arial,sans-serif;">What?</span>
</body>
</html>

« Back to HTML & CSS Snippets

Home | Site Map | Privacy Policy | Advertising | Contact Us
Copyright © 2006-2014 r2xDesign.net - All Rights Reserved.
eXTReMe Tracker