I've got this code which sets the .css value of a div
$("#1").mouseover(function () {
$("#naam").css('visibility', 'visible');
});
I want an interval of a X amount of time on it.
I've got this code which sets the .css value of a div
$("#1").mouseover(function () {
$("#naam").css('visibility', 'visible');
});
I want an interval of a X amount of time on it.
I guess, what you want is .delay() :
$( "#1" ).mouseover(function() {
$( "#naam" ).delay( 800 ).show(0);
});
The document is here: https://api.jquery.com/delay/
.show(0) or no animation will be put in queue$("#1").mouseover(
setTimeout(function () {
function() {
$("#naam").css('visibility','visible');
}
},30000);
);
setTimeout not setInterval . It execute on every 30 sec interval