关于日历控件My97DatePicker 在IE6下出现“无法打开站点,已终止操作”
1、My97DatePicker 官方:http://www.my97.net
2、在IE6下出现“无法打开站点,已终止操作”的解决办法(转):
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
![](http://www.blogjava.net/Images/OutliningIndicators/None.gif)
3、My97DatePicker 使用需要重点配置介绍:
http://www.my97.net/dp/demo/resource/3.asp
比如:dateFmt--string:'yyyy-MM-dd' 日期显示格式,你可以参考自定义格式;可以根据实际需求改成'yyyy-MM-dd HH:mm:ss'
4、记录下简单的调用方法:
在<HEAD></HEAD>之间增加:<script defer="defer"
language="JavaScript" type="text/javascript"
src="<%=basePath%>/sz/My97DatePicker/WdatePicker.js"></script>
添加调用:<input id="StartTime" name="StartTime"
value="<%=startTime1==null?" ":startTime1%>" type="text"
class="Wdate" style="width:160px" onclick="WdatePicker();"/>
5、记录一个在当前页面动态显示时间的js:
//添加web时间
<script>
function testDate(){
var date=new Date();
var result=date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
document.getElementById("mydate").innerHTML=result;
};
setInterval("testDate()", 1000);
</script>