-2
하여 setInterval은 여기mouseout jquery에서 setInterval하는 방법? 로 마우스에
<script type="text/javascript">
$(document).ready(function() {
$("#time").load("ajaxTime.php");
var refreshId = setInterval(function() {
$("#time").load('ajaxTime.php?randval='+ Math.random());
}, 1000);
$('#stop').mouseover(function(){
clearInterval(refreshId);
});
$('#stop').mouseout(function(){
setInterval(refrashID, 1000);
});
});
</script>
<center>
<div id="stop" style="width:100px; height: 100px; border: 1px solid #000;">
<div id="time"></div>
</div>
</center>
왜 1 인의 담당자에게 투표 하시겠습니까? 투표를 닫으세요 ... –