使用方法如下:
if(CheckDate(myform.sDate.value)){
alert("您输入的开始日期不正确(如:1980/07/17或1980-07-17)\n 请注意闰年!");
myform.sDate.focus();
return false;
}
只需要包含一个js文件
然后在你要实现鼠标移上显示浮动层的标签上加上属性 title="body=[这里是浮动层的内容]"就可以了
还可以加入header属性 title="body=[这里是浮动层的内容],header=[标题内容]"
/**
* 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...
测试代码
<script type="text/javascript">
xmlDoc = loadXMLDoc("books.xml");
document.write("xmlDoc is loaded, ready for use");
</script>
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' }, { ...