首页 技术教程 实用代码 注册破解 正则表达式 网址导航 电子书籍

Javascript判断日期填写的是否合法

使用方法如下: if(CheckDate(myform.sDate.value)){ alert("您输入的开始日期不正确(如:1980/07/17或1980-07-17)\n 请注意闰年!"); myform.sDate.focus(); return false; }
类别:Javascript    查看:452    更新:2014-05-10

兼容firefox的添加到收藏夹代码

类别:Javascript    查看:410    更新:2014-05-10

Javascript倒计时效果——精确到秒

类别:Javascript    查看:392    更新:2014-05-10

onmouseover延时处理

类别:Javascript    查看:328    更新:2014-05-10

快速实现鼠标移上的浮动层显示

只需要包含一个js文件 然后在你要实现鼠标移上显示浮动层的标签上加上属性 title="body=[这里是浮动层的内容]"就可以了 还可以加入header属性 title="body=[这里是浮动层的内容],header=[标题内容]"
类别:Javascript    查看:290    更新:2014-05-10

向上单行滚动的消息代码

类别:Javascript    查看:206    更新:2014-05-10

数字倒计时效果

类别:Javascript    查看:225    更新:2014-05-10

打开自定义弹出窗口

类别:Javascript    查看:186    更新:2014-05-10

自动调整图片高度、大小

类别:Javascript    查看:204    更新:2014-05-10

自动调整DIV高度大小AutoSizeDIV

类别:Javascript    查看:182    更新:2014-05-10

一个不错的AJAXRequest

/** * Copyright 2006-2008 xujiwei * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the sp...
类别:Javascript    查看:178    更新:2014-05-10

XML DOM 加载函数

测试代码 <script type="text/javascript"> xmlDoc = loadXMLDoc("books.xml"); document.write("xmlDoc is loaded, ready for use"); </script>
类别:Javascript    查看:206    更新:2014-05-10

精美实用的FLASH四图轮显广告代码

类别:Javascript    查看:181    更新:2014-05-10

CSS+JS的图片幻灯效果

类别:Javascript    查看:206    更新:2014-05-10

图片局部放大特效JS广告代码

类别:Javascript    查看:192    更新:2014-05-10

非常漂亮的可拖动的JS日历代码

Style-able and semantic XHTML I have tried to make Calendar as semantic as possible–with proper usage of CAPTION, THEAD, TBODY, TH and TD elements–and lots of CSS styling hooks. View the Calendar stylesheet for examples of the CSS; see the Styling Your Calendar section in the Manual for references to the XHTML. myCal1 = new Calendar({ date1: 'd/m/Y' }, { direction: 1, tweak: { x: 6, y: 0 }}); myCal2 = new Calendar({ date2: 'd/m/Y' }, { classes: ['dashboard'], direction: 1 }); ​​​​​​​myCal3 = new Calendar({ date3: 'd/m/Y' }, { ...
类别:Javascript    查看:186    更新:2014-05-10