ÎÞ·¨ÔÚºǫ́·½·¨ÖÐÎÞ·¨µ÷ÓÃJavaScript·½·¨
/// <summary>
/// µ¼³öEXCEL.
/// </summary>
/// <param name="sender"> </param>
/// <param name="e"> </param>
protected void lnbMenuExcel_Click(object sender, EventArgs e)
{
string operType = _hidOperType.Value;
AssetBLL astBLL = new AssetBLL();
Response.Clear();
Response.ContentType = "application/octet-stream";
Response.AppendHeader("content-disposition", "attachment;filename=assets.xls");
Response.ContentEncoding = System.Text.Encoding.GetEncoding("gb2312");
StringBuilder sb = new StringBuilder();
sb.Append(" <html xmlns:o=\"urn:schemas-microsoft-com:office:office\"\r\nxmlns:x=\"urn:schemas-microsoft-com:office:excel\"\r\nxmlns=\"http://www.w3.org/TR/REC-html40\">\r\n
Ïà¹ØÎÊ´ð£º
ÕâÊÇÎÒµÄÎı¾¿ò
<input type="text" size="60" name="password_answer" id="pwdanswer" value="$!password_answer" >
Ìá½»°´Å¥
<input clas ......
<script language="javascript">
function click() {
if (event.button==2) { //button==1Ϊ×ó¼ü
alert('µã»÷²é¿´ÎÄÕÂÏêϸÄÚÈÝ£¡')
}
}
document.onmousedown=click
</script>
ÒÔÉÏ ......
ÎÒµÄÔ´ÎļþÈçÏ£º
<html>
<head> <title>show picture </title>
<script>
function change(fileName)
{
  ......
ÿÖÜһ̸:JavaScript¼òµ¥×ܽá
±±¾© ÖÐÈí¹ú¼Êµç×ÓÕþÎñ²¿ Jeff Chi Ô´´£¬×ªÔØÇë×¢Ã÷±¾ÈËÔÖ·Á´½Ó
1¡¢×öjsµÚÒ»ÌõҪעÒâµÄ¾ÍÊÇÒªÖªµÀ×Ô¼ºËùÃæÁÙµÄÌôÕ½
a.ä¯ÀÀÆ÷¾³£»á±³ÀëÏÖÓеĹ淶±ê×¼£¬¾ÍÊÇ˵Óкܶàä¯ÀÀÆ÷רÓеÄj ......
²úÆ·µÄÅäÖÃÒ³Ãæ¹²ÓÃÒ»¸öÓÃJavaScriptµÄdTreeʵÏÖµÄÊ÷Ðνṹ£¬ÏÔʾµÄʱºò£¬Ê÷Ðνṹ¿¿ÔÚÒ³ÃæµÄ×î×ó±ß£¬¸úÎÒµÄÅäÖÃÒ³ÃæÖмä¸ôÁËÒ»´ó¿é£¬ÏÖÔÚÏë°ÑÊ÷ÐÎĿ¼¾ÓÖУ¬½ô¿¿ÔÚÅäÖÃÄÚÈÝÅԱߣ¬ÈçºÎ¿ØÖÆÊ÷ÐÎĿ¼µÄλÖã¬ÒÔ¼°¿É²»¿ ......