Created
March 8, 2013 21:31
-
-
Save Heavyblade/5120044 to your computer and use it in GitHub Desktop.
succes2
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> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<title>nuevo</title> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script type="text/javascript" charset="utf-8"> | |
function hideHola() { | |
if (window.hide) { $("#hola").hide() } | |
} | |
var hide = true | |
$(document).ready(function(){ | |
window.hola = 500; | |
$("body").on('hover', ".actions", function(e) { | |
window.hola = setTimeout("hideHola();", 3000); | |
}) | |
$("body").on('hover', "#hola", function(e) { | |
console.log("pase por ca") | |
window.hide = false | |
}) | |
}); | |
</script> | |
<style type="text/css"> | |
#hola {width: 200px; height: 200px; background-color: red;} | |
</style> | |
</head> | |
<body> | |
<a class="actions" href="#">Hola Mundo</a> | |
<br/> | |
<br/> | |
<br/> | |
<div id="hola"> | |
Hola | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's works!