<script>
// 切换清空
function Changeinput(objid,type,strDesc)
{
if (document.getElementById(objid).value==strDesc || document.getElementById(objid).value=="")
{
if(type==1)
{
document.getElementById(objid).value="";
}
else
{
document.getElementById(objid).value=strDesc;
}
}
}
</script>
<div class="info_right"><input id="mbcd" onBlur="Changeinput(this.id,'0','输入好友微博账号')" onFocus="Changeinput(this.id,'1','输入好友微博账号')" type="text" value="输入好友微博账号" /></div>