摘要: 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 小猪~~ 阅读(175) 评论(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 小猪~~ 阅读(407) 评论(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 小猪~~ 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 5 sf s e.srcElement 当前点击的事件源,iee.target 火狐 阅读全文
posted @ 2015-10-22 11:06 小猪~~ 阅读(143) 评论(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 小猪~~ 阅读(116) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2015-10-09 14:13 小猪~~ 阅读(1) 评论(0) 推荐(0) 编辑
摘要: background:url(qingz.jpg) center center no-repeat;background-attachment:fixed; 阅读全文
posted @ 2015-10-09 09:40 小猪~~ 阅读(287) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2015-10-08 14:40 小猪~~ 阅读(1) 评论(0) 推荐(0) 编辑