Created
March 23, 2014 10:50
-
-
Save ClausPolanka/9721530 to your computer and use it in GitHub Desktop.
Schoki
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>Schoki</title> | |
</head> | |
<body> | |
<a class="menu" href="#">Home</a> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.js"></script> | |
<script> | |
(function() { | |
var original_menu_text = $('a.menu').text(); | |
$('a.menu').hover( | |
function () { | |
$(this).text('[ ' + original_menu_text + ' ]'); | |
}, | |
function () { | |
$(this).text(original_menu_text); | |
}); | |
})(); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment