天天看點

.net中常用小方法總結

(1)、退出系統:

<a onclick="window.parent.opener=null;window.parent.close()"><img src="../App_Themes/MRSOFTASPNET/Images/quit.png"  border="0" /></a>

(2)、系統時間無重新整理顯示:

 <script type="text/javascript">

//輸出顯示日期的容器

 document.write("<span id=lblTime width='50px' height='11px' Font-Size='9pt' style='color:White' ></span>")  

 //每1000毫秒(即1秒) 執行一次本段代碼

  setInterval("lblTime.innerText=new Date().toLocaleString()",1000) 

</script>

繼續閱讀