Figure 1 unit position Diagram
Figure 2 position of each unit's emission source
Figure 3 add a source for a Unit
I tried to paint a few pictures and sweat. When I first learned windows, I wanted to draw a bunch of excellent grapes. Now I want to drool.
ProgramIt's easy. Just paste a piece of JavaScriptCode(Used to dynamically add sources to the page ):
// Parameter: ID, left margin, top margin, height, width, height, image number, image address, image prompt, double-click event
Function addpin (VID, vleft, vtop, vwidth, vheight, vimageid, vimageurl, vimagetips, vclickevent)
{
VaR DIV = Document. createelement ("Div ");
Div. ID = vid;
Div. style. Left = vleft;
Div. style. Top = vtop;
Div. style. width = vwidth;
Div. style. vheight = vheight;
Div. style. Position = "absolute ";
Div. style. Display = "inline ";
Div. innerhtml = " ";
Document. Body. appendchild (DIV );
}