Created
January 29, 2014 03:53
-
-
Save mrmoje/8681546 to your computer and use it in GitHub Desktop.
A Pen by mrmoje.
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
<button id="login" onmouseover="turnWhite()"> | |
Login Button. MouseOver to turn white | |
</button> |
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
document.getElementById("login").onmouseover = function () { turnWhite(); } | |
function turnWhite(){ | |
var myEventElement = turnWhite.caller.arguments[0].target; | |
myEventElement.className = "white"; | |
} |
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
#login{ | |
background:black; | |
color:white; | |
} | |
#login.white{ | |
background:white; | |
color:black; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment