函数传值问题,跪求各位大虾指导!!!!
<script language=javascript>
function extract(d,h,m,s){
if (!document.images)
return
if ((d> =10)&&(d <100))
{
document.images.a.src=cb.src
document.images.b.src=eval( "c "+Math.floor(d/10)+ ".src ")
document.images.c.src=eval( "c "+(d%10)+ ".src ")
}
else if(d> =100)
{
document.images.a.src=c1.src
document.images.b.src=eval( "c "+Math.floor(d/10)+ ".src ")
document.images.c.src=eval( "c "+(d%10)+ ".src ")
}
else
{
document.images.a.src=cb.src
document.images.b.src=cb.src
document.images.c.src=eval( "c "+d+ ".src ")
}
if (h <9)
{
document.images.e.src=cb.src
document.images.f.src=eval( "c "+h+ ".src ")
}
else
{
document.images.e.src=eval( "c "+Math.floor(h/10)+ ".src ")
document.images.f.src=eval( "c "+(h%10)+ ".src ")
}
if (m <9)
{
document.images.h.src=cb.src
document.images.i.src=eval( "c "+m+ ".src ")
}
else
{
document.images.h.src=eval( "c "+Math.floor(m/10)+ ".src ")
document.images.i.src=eval( "c "+(m%10)+ ".src ")
}
if (s <9)
{
document.images.k.src=cb.src
document.images.l.src=eval( "c "+s+ ".src ")
}
else
{
document.images.k.src=eval( "c "+Math.floor(s/10)+ ".src ")
document.images.l.src=eval( "c "+(s%10)+ ".src ")
}
}
function show(){
BirthDay=new Date( "12-21-2007 ");
today=new Date();
timeold=(BirthDay.getTime()-today.getTime());
sectimeold=timeold/1000 ;
secondsold=Math.floor(sectimeold);
msPerDay=24*60*60*1000 ;
e_daysold=timeold/msPerDay ;
daysold=Math.floor(e_daysold);
e_hrsold=(e_daysold-daysold)*24;
hrsold=Math.floor(e_hrsold);
e_minsold=(e_hrsold-hrsold)*60;
minsold=Math.floor((e_hrsold-hrsold)*60);
seconds=Math.floor((e_minsold-minsold)*60) ;
extract(daysold,hrsold,minsold,seconds);
setTimeout( "show() ",1000) ;
}
我的show()里的 extract(daysold,hrsold,minsold,seconds)为什么传不到extract()函数中???
分不多,请大家不吝赐教!!!
------解决方案--------------------值是可以传进去的``里面我就没有看了
------解决方案--------