/* Create copyright: jinpeilong 2012 */
Function createxhr ()
{
VaR xhr;
Try
{
Xhr = new activexobject ("msxml2.xmlhttp ");
}
Catch (E)
{
Try
{
Xhr = new activexobject ("Microsoft. XMLHTTP ");
}
Catch (E)
{
Xhr = false;
}
}
If (! Xhr & typeof XMLHttpRequest! = 'Undefined') xhr = new XMLHttpRequest ();
Return xhr;
}
Function divyy (FW, name)
{
If (document. getelementbyid ('did3 ')! = NULL)
{
VaR div21 = "div3 ";
Removediv (div21 );
}
VaR div2 = Document. createelement ("Div ");
Div2.id = "div3 ";
VaR clientxs = event. clientx;
VaR clienty = event. clientY-100;
VaR srtr = "";
VaR srtr = "";
VaR xhr;
Xhr = createxhr ();
VaR url = ".../photo. aspx? Cid = "+ FW + "";
Xhr. Open ("Post", URL, false );
Xhr. onreadystatechange = function ()
{
If (xhr. readystate = 4 & xhr. Status = 200)
Srtr = xhr. responsetext;
}
Xhr. Send (null );
VaR sr = srtr. Split ("| ");
VaR STR = "<Div id = 'oss 1' style = 'position: absolute; width: 300px; Height: auto; Border: 1px solid silver; Background-color: # ffffff; top: "+ clienty +" PX; left: "+ clientxs +" PX; '> ";
STR + = "<Div id = 'move1' style = ''' onmousedown = 'milan _ startmove (event, this. parentnode) 'onmouseup = 'milan _ stopmove (event )'";
STR + = "style = 'cursor: move; width: 97%; Height: 25px; Background-color: # ebf1ff; font-size: 14px; padding-left: 10px; padding-top: 10px; font-size: 14px; text-align: left '> <font color = 'red'> "+ name +" </font>-Contact Information </div> ";
STR + = "<Div style = 'width: 98%; padding-left: 15px; padding-top: 10px; font-size: 14px; line-Height: 20px; height: auto; '> ";
STR + = "<Div style = 'width: 100%; float: Left; Height: auto; padding-top: 10px; padding-bottom: 20px; '> <Div style = 'height: 25px; width: 80px; float: Left; text-align: Right; font-size: 14px;'> position: </div> <Div style = 'float: Left; width: 200px; Height: 25px; text-align: left; '> "+ Sr [0] +" </div> ";
STR + = "<Div style = 'height: 25px; width: 80px; float: Left; text-align: Right; font-size: 14px; '> contact number: </div> <Div style = 'float: Left; width: 200px; Height: 25px; text-align: Left; Word-break: Break-all; '> "+ Sr [1] +" </div> ";
STR + = "<Div style = 'height: 25px; width: 80px; float: Left; text-align: Right; font-size: 14px; '> mobile phone: </div> <Div style = 'float: Left; width: 200px; Height: 25px; text-align: Left; Word-break: Break-all; '> "+ Sr [2] +" </div> ";
STR + = "<Div style = 'height: 25px; width: 80px; float: Left; text-align: Right; font-size: 14px; '> business Fax: </div> <Div style = 'float: Left; width: 200px; Height: 25px; text-align: left; '> "+ Sr [3] +" </div> ";
STR + = "<Div style = 'height: 25px; width: 80px; float: Left; text-align: Right; font-size: 14px; '> Email: </div> <Div style = 'float: Left; width: 200px; Height: 25px; text-align: left; '> "+ Sr [4] +" </div> ";
STR + = "<Div style = 'height: 25px; width: 80px; float: Left; text-align: Right; font-size: 14px; '> QQ: </div> <Div style = 'float: Left; width: 200px; Height: 25px; text-align: left; '> "+ Sr [5] +" </div> ";
STR + = "<Div style = 'height: 25px; width: 80px; float: Left; text-align: Right; font-size: 14px; '> MSN: </div> <Div style = 'float: Left; width: 200px; Height: 25px; text-align: left; '> "+ Sr [6] +" </div> ";
STR + = "</div> ";
Div2.innerhtml = STR;
Document. getelementbyid ("divps"). appendchild (div2 );
}
Function divclose ()
{
If (document. getelementbyid ('did3 ')! = NULL)
{
VaR div21 = "div3 ";
Removediv (div21 );
}
}
Function removediv (OBJ)
{
VaR Ob = Document. getelementbyid (OBJ );
Ob. parentnode. removechild (OB );
}