Skip to content

Instantly share code, notes, and snippets.

@Heavyblade
Created March 8, 2013 21:31
Show Gist options
  • Save Heavyblade/5120044 to your computer and use it in GitHub Desktop.
Save Heavyblade/5120044 to your computer and use it in GitHub Desktop.
succes2
<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>
Copy link

ghost commented Mar 8, 2013

It's works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment