定义全局变量iID;增加一个元素就iID++;
定义全局变量iCount;清空重画就iCount++;
每个元素用ID标识型如:
var vRoundRect=document.createElement("v:roundrect");
vRoundRect.id=iCount+"_"iID;
DivID.appendChild(vRoundRect);
iID++;
这样构成一幅图就可以用
元素id来选择iCount相同的
那么遍历iCount
CurrentCount=iCount为一常量.就有
DivID
for(iIndex=0;iIndex<iID_CurrentCount;iIndex++)
{
    DivID.innerHTML=DivID.innerHTML+eval(CurrentCount+"_"+iID+".innerHTML");
}