随笔分类 -  JQuery & Js

摘要:网络整理的选择文字转发到微博的JS,以备后用。直接引入,把需要实现选择转发的标签块改掉就可以实现效果。 1 var sinaImg = '<img style="display: none; cursor: pointer; position: absolute; width:26px; height:26px;" id="imgSinaShare" title="将选中内容分享到新浪微博" src="http://simg.sinajs.cn/blog7style/images/common/share.gi 阅读全文
posted @ 2012-07-19 11:50 Zhou Hr 阅读(723) 评论(0) 推荐(0)
摘要:function rev_sel(name){ var check_obj = $("input[name='"+name+"']"); for(var i=0; i<check_obj.length;i++){ check_obj.get(i).checked = ! check_obj.get(i).checked; } return;} 阅读全文
posted @ 2012-03-29 19:51 Zhou Hr 阅读(146) 评论(0) 推荐(0)
摘要:备忘录$("[name='checkbox']:checked").each(function(){alert((this).val());}) ; 阅读全文
posted @ 2010-09-13 16:18 Zhou Hr 阅读(497) 评论(0) 推荐(0)
摘要:自动记录, 以备忘记...../** * 浮动DIV定时显示提示信息,如操作成功, 失败等 * http://www.cnblogs.com/showblog/archive/2010/08/27/1810427.html * http://www.ketann.com * @param string tips (提示的内容) * @param int height 显示的信息距离浏览器顶部的高度 * @param int time 显示的时间(按秒算), time > 0 * @sample <a href="javascript:void(0);" oncl 阅读全文
posted @ 2010-08-27 21:28 Zhou Hr 阅读(2857) 评论(0) 推荐(0)