日期:2014-05-16 浏览次数:20514 次
<span onmousemove="show('<%#Eval("Address") %>','<%# Eval("Cus_Name")%>','<%# Eval("Phone")%>')"></span>
function show(address,c_name,phone) { document.getElementById("div1").style.visible=true; document.getElementById("div1").innerHTML="客户姓名"+c_name; document.getElementById("div1").innerHTML="<br/>"; document.getElementById("div1").innerHTML="客户电话"+phone; document.getElementById("div1").innerHTML="<br/>"; document.getElementById("div1").innerHTML="客户地址"+address; document.getElementById("div1").innerHTML="<br/>"; } function close() { document.getElementById("div1").style.visible=false; }
<span onmouseover='document.getElementById("div1").style.display="none";'>测试 </span> <div id="div1">xxxxxxx</div>