![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript
flyfx52
这个作者很懒,什么都没留下…
展开
-
JS 固定列和头部固定
Fixed Header And Columns .Freezing { z-index: 10; position: relative; top: expression(this.offsetParent.scrollTop) } .FreezingCol { z-index:...原创 2013-11-25 15:46:26 · 758 阅读 · 0 评论 -
JS 实现进度条
copy: 进度条... var bar=0; //进度条的进度 var line="||" ; //类似进度条的符号 var amount="||" ; count() ; function count(){ bar=bar+2 ; //进度条+2 amount =amount + line ; //符号也跟着增加 document.loading....原创 2013-12-18 16:49:02 · 193 阅读 · 0 评论 -
ajax 异常处理
copy :http://www.cnblogs.com/luminji/archive/2011/08/01/2123586.html原创 2014-06-17 23:32:45 · 256 阅读 · 0 评论 -
JS offsetLeft,scrollLeft,clientLeft
http://www.jb51.net/article/25935.htm [code="java"] offset,clientSet,scrollSet function testOffset(){ document.getElementById("testDiv").innerHTML ="B..05 offsetTop :" +document.getEl...原创 2014-03-02 20:53:19 · 78 阅读 · 0 评论 -
在IE中,用js打开文件
http://hi.baidu.com/hlxslpfogugmose/item/f5b364ada40cf59f141073db oExcel = new ActiveXObject("Excel.Application"); // ファイルを開く。 oExcel.DisplayAlerts = false; oEx...原创 2014-03-05 11:16:01 · 165 阅读 · 0 评论 -
JS 事件(备用)
① jQuery 事件 - trigger() 方法 触发 input 元素的 select 事件: $("button").click(function(){ $("input").trigger("select"); }); 代码: $(document).ready(function(){ $("input").select(funct...原创 2013-10-23 14:54:00 · 93 阅读 · 0 评论 -
JS 日期控件用到的属性
client width offset widthY 以上获得控件的宽度(滚动条和非滚动条的情况)(高度:clientHeight) scrollHeight: 获取对象的滚动高度。 scrollLeft:设置或获取位于对象左边界和窗口中目前可见内容的最左端之间的距离 scrollTop:设置或获取位于对象最顶端和窗口中可见内容的最顶端之间的距离 scrollWidth:获取对象的...原创 2013-10-25 16:14:56 · 209 阅读 · 0 评论 -
ondrag
[code="java"] function showpos() { document.all.x.value = event.clientX; document.all.y.value = event.clientY; } function Point() { this.x, this.y; t...原创 2014-10-29 22:12:43 · 176 阅读 · 0 评论 -
dropdownchecklist
[code="java"] $(document).ready( function() { $("#select_drop_down_check_list").dropdownchecklist( {width:150,maxDropHeight : 150}); $(".ui-dropdownchecklist-wrapper").css({bord...原创 2014-11-25 09:51:27 · 389 阅读 · 0 评论