Last active
August 29, 2015 14:03
-
-
Save boborchard/b98daeae99fe475f5069 to your computer and use it in GitHub Desktop.
Change body background on hover
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Background Hover Change</title> | |
<!-- by @boborchard for @mantia https://twitter.com/mantia/status/488378727295098881) --> | |
<script language="javascript"> | |
<!-- | |
function changeBGC(color){ | |
document.bgColor = color; | |
} | |
//--> | |
</script> | |
</head> | |
<body> | |
<p><strong>Hover over the icon below to change the body background</strong></p> | |
<p><img src="http://tinypint.com/wp-content/uploads/2014/07/icn_tinypint.png" width="20px" height="20px" onMouseOver="javascript:changeBGC('#3498db')" onMouseOut="javascript:changeBGC('#FFFFFF')"></p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment