04 2012 档案

摘要:getBoundingClientRect();该方法获得页面中某个元素的左,上,右和下分别相对浏览器视窗的位置,他返回的是一个对象,即 Object,该对象有四个属性:top,left,right,bottom;//document.getElementById('id').getBoundingClientRect().left; 阅读全文
posted @ 2012-04-28 17:19 妙計出自山人 阅读(719) 评论(0) 推荐(0) 编辑
摘要:1 $.browser.msie && ($.browser.version == 6.0) 阅读全文
posted @ 2012-04-28 15:16 妙計出自山人 阅读(159) 评论(0) 推荐(0) 编辑
摘要:Code: 1 (function($){ 2 3 function NAME(elm,options,index){ 4 var _this = this; 5 this.$e = $(elm); 6 this.opts = options; 7 this.init(); 8 } 9 10 NAME.prototype = {11 init : function(){},12 event : function(){}13 }14 15 $.fn.Name = function(options){16 var opts = $.exte... 阅读全文
posted @ 2012-04-01 10:40 妙計出自山人 阅读(287) 评论(1) 推荐(0) 编辑