Skip to content

Instantly share code, notes, and snippets.

@ClausPolanka
Created March 23, 2014 10:50
Show Gist options
  • Save ClausPolanka/9721530 to your computer and use it in GitHub Desktop.
Save ClausPolanka/9721530 to your computer and use it in GitHub Desktop.
Schoki
<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