摘要: $(“form ~input”) //和from同级的 元素 $("input[type=checkbox]:checked") //所有选中的checkbox $("#id").animate({ top: 100 }, "slow", "swing"); //选择的元素要加 position属性 dropdownlist操作 $("#id").change(function(){}); //添加事件 $("#id").find("option:selected& 阅读全文
posted @ 2011-12-29 14:37 高捍得 阅读(1655) 评论(0) 推荐(0) 编辑
摘要: unescape($("#id").val()) // html解码 escape($("#id").val()) //html编码 非常易用的JS,使用啊。 阅读全文
posted @ 2011-12-28 12:10 高捍得 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 脚本: <script type="text/javascript"> $(document).ready(function () { $("ul").find("li:eq(0)").addClass("over"); //初始化背景 $("div ul li").mouseover(function () { $("#ima").attr("src", "../image/" + $(this).text() + &qu 阅读全文
posted @ 2011-12-27 08:41 高捍得 阅读(1390) 评论(0) 推荐(0) 编辑
摘要: var loader:URLLoader = new URLLoader(); var url:URLRequest = new URLRequest("http://localhost/Handler.ashx"); url.method = URLRequestMethod.POST; var values:URLVariables... 阅读全文
posted @ 2011-11-22 15:28 高捍得 阅读(293) 评论(0) 推荐(0) 编辑
摘要: as文件: 1.导包 (网上找 as3corelib 目前我用93) import com.adobe.serialization.json.JSON 2. var loader:URLLoader = new URLLoader(); var url:URLRequest = new URLRequest("http://localhost/Handler.ashx")... 阅读全文
posted @ 2011-11-22 13:34 高捍得 阅读(275) 评论(0) 推荐(0) 编辑
摘要: // 以XML形式与ASP.NET通信 function showXml():void { var v:URLVariables = new URLVariables() var r:URLRequest = new URLRequest(); r.url = "http://localhost/handle.aspx"; r.method = U... 阅读全文
posted @ 2011-11-22 11:24 高捍得 阅读(210) 评论(0) 推荐(0) 编辑
摘要: function onClick(evt:MouseEvent):void { if (evt.target.name == "closeBtn") { evt.target.parent.gotoAndStop("close"); } else if (evt.target.name=... 阅读全文
posted @ 2011-11-22 11:16 高捍得 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 一、//TransmitFile实现下载 protected void Button1_Click(object sender, EventArgs e) { Response.ContentType = "application/x-zip-compressed"; Response.AddHeader("Content-Disposition", "attach... 阅读全文
posted @ 2011-11-22 10:00 高捍得 阅读(201) 评论(0) 推荐(0) 编辑
摘要: <script> var online = new Array(); </script> <script src="http://webpresence.qq.com/getonline?Type=1&QQ号:”></script> <script type="text/javascript"> $(docume... 阅读全文
posted @ 2011-11-09 11:58 高捍得 阅读(230) 评论(0) 推荐(0) 编辑
摘要: private DataSet GetExcelData(string str) { string strCon = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + str + ";Extended Properties=\"Excel 12.0;HDR=YES\""; OleDbConn... 阅读全文
posted @ 2011-11-08 10:35 高捍得 阅读(355) 评论(0) 推荐(0) 编辑