[阅读: 409] 2006-12-20 08:04:12
function LoadFirstImg()
{
for (var s=1;s<=16;s++)
{
if ((typeof('Preimg'+s+'-0') != "undefined")&& (typeof('MainPicBox'+ s) !="undefined"))
{
var MainPicBox=document.getElementById('MainPicBox'+ s);
var Preimg=document.getElementById('Preimg'+s+'-0');
MainPicBox.Src=Preimg.Src;
}
}
}
MainPicBox 和 Preimg 都是 Image ,帮我看看代码哪些地方不妥