1
Comment puis-je déplacer mon code d'initialisation à savoirComment faire pour déplacer correctement jQuery de la page d'index, dans un fichier javascript séparé?
<script type="text/javascript">
$(document).ready(function() {
var t; // This will be a timeout
$('.navHover').mouseover(function() {
if (t)
{
clearTimeout(t);
}
$('.navigation').slideDown(400);
}).mouseout(function() {
t = setTimeout(function() {
$('.navigation').slideUp(400);
}, 800); // .8 second delay before hiding
});
$('.navigation').mouseover(function() {
if (t)
{
clearTimeout(t);
}
}).mouseout(function() {
t = setTimeout(function() {
$('.navigation').slideUp(400);
}, 800); // .8 second delay before hiding
});
});
</script>
dans un fichier séparé? main.js?
Merci
Ou, idéalement, après le '