function draw()
{
k=0;
drawall.innerHTML="<v:group id='group1' style='Z-INDEX: 101; LEFT: 180px; WIDTH: 600px; POSITION: absolute; TOP: 0px; HEIGHT: 200px' coordsize='2000,2000'></v:group>";
for(var i=0;i<flowinfo.length;i++)
{
// alert(flowinfo[i][2]);
if(flowinfo[i][2]!="")
{
// var strElement="<v:RoundRect style='position:relative;width:220;height:150px' strokeColor='blue'><v:TextBox inset='5pt,5pt,5pt,5pt' style='font-size:10.2pt;'>Hello world!</v:TextBox></v:RoundRect>";
var strElement ="<v:RoundRect Title='"+ flowinfo[i][2] +"' style='position:relative;top:"+ (k+1)*320 +";left:"+50 +";width:300;height:250px'/>";
var newPoint = document.createElement(strElement);
group1.insertBefore(newPoint);
strElement =strElement + "<v:shadow on='T' type='single' color='#b3b3b3' offset='5px,5px'/>";
strElement =strElement + "<v:TextBox inset='5pt,5pt,5pt,5pt' style='position:relative;top:300;left:550;font-size:10.2pt'>Hello world!</v:TextBox>";
newPoint = document.createElement(strElement);
group1.insertBefore(newPoint);
k++
}
}
}
{
k=0;
drawall.innerHTML="<v:group id='group1' style='Z-INDEX: 101; LEFT: 180px; WIDTH: 600px; POSITION: absolute; TOP: 0px; HEIGHT: 200px' coordsize='2000,2000'></v:group>";
for(var i=0;i<flowinfo.length;i++)
{
// alert(flowinfo[i][2]);
if(flowinfo[i][2]!="")
{
// var strElement="<v:RoundRect style='position:relative;width:220;height:150px' strokeColor='blue'><v:TextBox inset='5pt,5pt,5pt,5pt' style='font-size:10.2pt;'>Hello world!</v:TextBox></v:RoundRect>";
var strElement ="<v:RoundRect Title='"+ flowinfo[i][2] +"' style='position:relative;top:"+ (k+1)*320 +";left:"+50 +";width:300;height:250px'/>";
var newPoint = document.createElement(strElement);
group1.insertBefore(newPoint);
strElement =strElement + "<v:shadow on='T' type='single' color='#b3b3b3' offset='5px,5px'/>";
strElement =strElement + "<v:TextBox inset='5pt,5pt,5pt,5pt' style='position:relative;top:300;left:550;font-size:10.2pt'>Hello world!</v:TextBox>";
newPoint = document.createElement(strElement);
group1.insertBefore(newPoint);
k++
}
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货