62,046
社区成员
发帖
与我相关
我的任务
分享
function MyFun(var x,var y) {
document.getElementById("img").innerHTML = " <div style='position: absolute; width: 20px; height: 18px; top: "+x+"; left: "+y+";'><img src='../../../1.jpg' /></div>";
}
protected void Button2_Click(object sender, EventArgs e)
{
string a = Server.HtmlDecode(Request.Form["Text1"].ToString());
string[] sOld = a.Split('.');
int x = Convert.ToInt32(sOld[0]);
int y = Convert.ToInt32(sOld[1]);
ClientScript.RegisterStartupScript(ClientScript.GetType(), "myscript", "<script>MyFun("+x+","+y+");</script>");
}