随笔 - 281  文章 - 24 评论 - 43 阅读 - 23万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

01 2010 档案
JS控制DIV的高度一致
摘要:<script type="text/javascript"> /* <![CDATA[ */ function AdjustColumnsHeight() { // get a reference to the three DIVS that make up the columns var mainCol = window.document.getElementById('Ma... 阅读全文
posted @ 2010-01-29 08:58 阿C's 阅读(4275) 评论(0) 推荐(0) 编辑
JS关闭窗口或JS关闭页面的几种代码
摘要:JS关闭窗口或JS关闭页面的几种代码 JS定时自动关闭窗口 <script language="javascript"> <!-- function closewin(){ self.opener=null; self.close();} function clock(){i=i-1 document.title="本窗口将在"+i+"秒后自动关闭!"; if(i>0)se... 阅读全文
posted @ 2010-01-28 15:20 阿C's 阅读(1522) 评论(0) 推荐(0) 编辑
[转]jquery如何退出each循环的?
摘要:jquery如何退出each循环的?在回调函数里return false即可,大多数jq的方法都是如此的 ===================================返回 'false' 将停止循环 (就像在普通的循环中使用 'break')。返回 'true' 跳至下一个循环(就像在普通的循环中使用'continue')。 阅读全文
posted @ 2010-01-18 07:14 阿C's 阅读(551) 评论(0) 推荐(0) 编辑
[转]利用jQuery选中下拉框,复选框,单选按钮
摘要:<script>$(function(){$('#ym').val(['1980','1971','1973']);//选中多选下拉框$('#ys').val(['1971']);//选中下拉(框单选)$('input[name="g[]"]').val(['3']);//选中radio$('input[name="fav[]"]').val(['3','0','2']);//选中ch... 阅读全文
posted @ 2010-01-18 07:10 阿C's 阅读(779) 评论(0) 推荐(0) 编辑
[转]创建全国省、城市、县数据库表SQL语句
摘要:http://buliangniu.javaeye.com/blog/524633 阅读全文
posted @ 2010-01-14 22:57 阿C's 阅读(286) 评论(0) 推荐(0) 编辑
[转]阻止事件冒泡
摘要:阻止事件冒泡 在html中触发的事件会往上冒泡,直到最上层.比如Click me, twice alert源码:<div onclick="alert('div is clicked')"><a onclick="alert('a is clicked'); return false;" href="#">Click me, twice alert</a><... 阅读全文
posted @ 2010-01-05 07:28 阿C's 阅读(330) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示