2007-03-29

Ajax实现网易相册样式的修改

来源: 本站收集整理 作者:佚名 评论 0 条
 
}
var s;
function UpdateDesc()
{
s= document.getElementById("descfield").value;
document.getElementById("descfield").value="正在保存";
_163photoTest.UpdateDesc(s,UpdateDesc_callback);
}

function UpdateDesc_callback(res)
{
if (res)
{
document.getElementById('description').style.display='block';
document.getElementById("description").innerText =s;
document.getElementById('descfield').style.display='none';
document.getElementById('save').style.display='none';
}
}
</script>
</head>
<body onload="document.getElementById('descfield').style.display='none';document.getElementById('save').style.display='none';">
<form id="form1" runat="server">
<div id="div1" onmousemove="this.style.backgroundColor='#C0C0FF';" onmouseout="this.style.backgroundColor='';" onclick="display()">
<asp:Label ID="description" runat="server" Text="Label"></asp:Label>

</div>
<input type="text" id ="descfield" />
<input type="button" id="update" value="修改描述" onclick="display()"/>
<input type="button" id="save" value="保存修改" onclick="UpdateDesc()"/>
<br />
</form>
</body>
</html>

出处:Coder at the Doorsill——风中聆听 BLOG

共2页: 上一页 [1] 2 下一页
    评论加载中…

网站首页  -  网站地图 -   站长论坛  -  网站投稿  -    -  网站管理
Copyright © 2008 芜湖站长站 All Rights Reserved 皖ICP备07500611号