随笔分类 -  js

1
摘要:$("#page").pagination(100);来自 :http://www.zhangxinxu.com/jq/pagination_zh/http://www.zhangxinxu.com/wordpress/2010/01/jquery-pagination-ajax%E5%88%86%... 阅读全文
posted @ 2015-12-29 15:02 小猪~~ 阅读(80) 评论(0) 推荐(0)
摘要:function scrollx(p) { var d = document, dd = d.documentElement, db = d.body, w = window, o = d.getElementById(p.id)... 阅读全文
posted @ 2015-11-17 09:49 小猪~~ 阅读(178) 评论(0) 推荐(0)
摘要:var tags_a = $("#tags a");tags_a.each(function(){ var x = 9; var y = 0; var rand = parseInt(Math.random() * (x - y + 1) + y); $(this).addClass("ta... 阅读全文
posted @ 2015-11-06 11:08 小猪~~ 阅读(420) 评论(0) 推荐(0)
摘要:$(function(){ $(".tip").on("click",function(e){ bonusPoints(e); }) }); //懒人建站 http://www.51xuediannao.com function bonusPoints(e){ var n=Math.round... 阅读全文
posted @ 2015-11-06 10:48 小猪~~ 阅读(362) 评论(0) 推荐(0)
摘要:5 sf s e.srcElement 当前点击的事件源,iee.target 火狐 阅读全文
posted @ 2015-10-22 11:06 小猪~~ 阅读(151) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2015-10-13 15:50 小猪~~ 阅读(1) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2015-10-13 10:05 小猪~~ 阅读(1) 评论(0) 推荐(0)
摘要:http://www.my97.net/dp/demo/resource/2.4.aspjs获取服务端时间,利用js读取文件头信息,虽然还是会有一点延时,但是已经很好了。function getSeverDateTime(){ var xhr = window.ActiveXObject ? new... 阅读全文
posted @ 2015-10-12 11:29 小猪~~ 阅读(123) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2015-10-09 14:13 小猪~~ 阅读(1) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2015-10-08 14:40 小猪~~ 阅读(1) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2015-10-08 14:39 小猪~~ 阅读(2) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2015-10-08 14:37 小猪~~ 阅读(1) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2015-09-29 11:55 小猪~~ 阅读(1) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2015-09-29 11:35 小猪~~ 阅读(1) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2015-09-29 11:30 小猪~~ 阅读(3) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2015-09-29 11:28 小猪~~ 阅读(3) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2015-09-29 11:27 小猪~~ 阅读(6) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2015-09-29 11:23 小猪~~ 阅读(3) 评论(0) 推荐(0)
摘要://底部分享条 $(document).scrollTop$(window).scroll(function(){ var t=document.documentElement.scrollTop|| document.body.scrollTop; if(t>500){$(".Us_top").r... 阅读全文
posted @ 2015-09-29 11:22 小猪~~ 阅读(141) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。
posted @ 2015-09-29 11:10 小猪~~ 阅读(1) 评论(0) 推荐(0)

1