setTimeout调用的函数不能传递参数~~~可行方法是var a="...";
var b="...";
var c="...";var the_timeout = setTimeout("alertAndRedirect();",3000);在函数alertAndRedirect直接使用全局变量~~~
var b="...";
var c="...";var the_timeout = setTimeout("alertAndRedirect();",3000);在函数alertAndRedirect直接使用全局变量~~~
<script language="javascript">
var a="...";
var the_timeout = setTimeout("show(a);",3000);
function show(s){
alert(s);
}
</script>
var i = 1;
window.resizeTo(50, 200);
window.moveTo(screen.width-150,screen.height);
function MSNPOP()
{
window.moveTo(screen.width-150,screen.height-70-i);
i++;
if(i<150)
setTimeout("MSNPOP()", 1);
}
MSNPOP();
</script>循环~~~~像这样就可以了~~~~
var the_timeout = setTimeout(function()
{
alertAndRedirect (a,b,c);
},3000);
var total=1;
var percent;
function onload_start()
{
if((total>0)&&(total<=10))
total+=6;
else if((total>10)&&(total<=35))
total+=20;
if(total<=50)
{
t=(total/50)*100;
setTimeout("onload_start()",100) }
else
{
//
}
}</script>