改为
setInterval("fragmentImg(fragmentConfig)",2000);
2000是毫秒,即2秒循环执行一次不用这么麻烦吧:
<script type="text/javascript">
$(document)ready(function(){
for (var i=0;i<10;i++){
$('#' +i)click(function(){
$('c' +i)toggle();
});
}
});
</script><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<script type="text/javascript">
var r=prompt("请输入圆的半径","在此输入数字");
var i = 1;
while(i == 1){
if(isNaN(r)){
//alert("请输入数字");
r=prompt("请输入圆的半径","在此输入数字");
}
else{
var s=MathPIrr
documentwrite(s);
i = 0;
}
}
</script>
</body>
</html>var R = '',num,_G,alt;
for (var i = 3;i > 0;i--)
{
var numlevel = Mathfloor(num / Mathpow(_Gsettingstarthreshold,i - 1))
num = num % Mathpow(_Gsettingstarthreshold,i - 1)
for (var j = 0;j < numlevel;j++)
R += '<img src="' + _Gstyleimgdir + '/star_level' + i + 'gif" ' + alt + '/>'
}
return R
在你给的上下文范围内只能转换到这种程度了
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)