![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVASCRIPT
文章平均质量分 77
ruisheng_412
这个作者很懒,什么都没留下…
展开
-
JavaScript实践——右侧广告栏伴随滚动条移动
<!-- 右边栏 --><div style="height: 140px; width:130px; right: 10px; position: absolute; top: 70px; background-color: #FFFFFF;-moz-border-radius: 3px;-webkit-border-radius: 3px; " id="qqLink"&g...2009-03-09 18:04:12 · 632 阅读 · 0 评论 -
精通JavaScript源码1
去空格方法,FF把空白的处当作文本节点,nodeValue等于3,IE会忽略。下面这个方法,如果出入的对象子节点很多的时候,效率不高。function cleanWhitespace( element ) { // 如果没有提供参数,遍历整个HTML文档 element = element || document; // 使用第一个child作为遍历的开始 ...2009-03-17 17:59:50 · 116 阅读 · 0 评论 -
精通JavaScript源码2
// Find the left position of an elementfunction posX(elem) { // Get the computed style and get the number out of the value return parseInt( getStyle( elem, “left” ) );}// Find the top posit...2009-03-22 15:24:37 · 92 阅读 · 0 评论 -
精通JavaScript源码3
设置元素的隐藏或者可见:// A function for hiding (using display) an elementfunction hide( elem ) { // Find out what it’s current display state is var curDisplay = getStyle( elem, ‘display’ ); // R...2009-03-22 15:49:33 · 74 阅读 · 0 评论 -
JavaScript实践——提交后3秒返回当前页
用到window对象的setTimeout()方法和setInterval()方法。 setTimeout()方法设置暂停,改方法有两个参数,执行的指定代码和暂停的毫秒数;要取消未执行的暂停,调用clearTimeout()方法。setInterval()方法用于每隔指定的时间间隔,重复执行指定的代码;参数同上,取消调用clearInterval()方法。 <body ...2009-03-23 17:34:59 · 360 阅读 · 0 评论 -
JavaScript实践——AJAX分页
今天写了一个AJAX分页,把思路整理一下。 private int count = 0;// 总记录数 private int currentPage = 0; //当前页面 private int pageSize = 10; // 每页记录数 private int totalPage = 1; //总页总书 //从数据取出总记录数,求出页面总数...2009-03-30 17:14:39 · 138 阅读 · 0 评论 -
jquery对象和dom的区别
<body> <a href="http://www.baidu.com" id="ah">baidu go.......</a> </body> <script type="text/javascript"> $(function() {2010-03-30 14:09:38 · 76 阅读 · 0 评论 -
JavaScript实践——AJAX封装工具
写了一个javascript程序,把ajax封装了在一个js文件中,供大家参考,请多多指教。先声明几个变量:var AJAXUtil = new Object();//工具对象var xmlHttpRequest;//XMLHttpRequest对象var sateChangeMethod; //方法变量 创建xmlHttpRequest对象:AJAXUtil.createXMLHt...2009-02-18 17:54:27 · 124 阅读 · 0 评论 -
JavaScript实践——年月日下拉菜单
//年月日下拉菜单function DateSelector(sYear, selMonth, selDay){ this.sYear = sYear; this.sMonth = sMonth; this.sDay = sDay; this.sYear.Group = this; this.sMonth.Group = th...原创 2009-02-23 22:34:07 · 371 阅读 · 0 评论