87,904
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript">
function scrollStar(id)
{
if (document.getElementById(id).status == true){
selectId = id;
window.scrollBy(0,1);
var int=self.setTimeout("scrollStar(id)",50);
}
else{
var int=window.clearInterval(int);
}
}
</script>
<input name="" type="checkbox" id="checkbox" value="" onClick="scrollStar('checkbox');">
var int=self.setTimeout(scrollStar(id),50);
var int=self.setTimeout("scrollStar('"+id+"')",50);
方法二:
var int=self.setTimeout(function(){scrollStar(id)},50);