I'm trying to call a function defined in an external .js using jQuery, but nothing happens. Here is my html:
<head>
<title>Página de pruebas jQuery</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!--<link rel="StyleSheet" href="css/style.css" type="text/css" />-->
<script type="text/javascript" src="jquery-1.10.2.min.js" /></script>
<script type="text/javascript" src="E1.js" />
</script>
</head>
<body>
<div id="contenedor">
Pasa el ratón por aquí
</div>
<div id="mostrador" style="display: none;">
Muy bien, has pasado el raton por encima!
</div>
</body>
And my jQuery code:
$(document).ready(function(){
$("#contenedor").mouseenter(mostrarTexto(evento));
$("#contenedor").mouseleave(ocultarTexto(evento));
});
var mostrarTexto=function(evento){
$("#mostrador").css("display","block");
}
var ocultarTexto=function(evento){
$("#mostrador").css("display","none");
}
I've tried a lot of things I've searched, but i can't get it to work