标题:这个问题请能帮助解决下
只看楼主
hongei
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2011-6-14
结帖率:50%
已结贴  问题点数:0 回复次数:3 
这个问题请能帮助解决下
下面这段代码是 日期控件,不知道里面的年份要怎么修改。我现在使用的这个控件只能显示2007,2008,2009,2010;我想让年份能够显示到2020年,请能帮我看看怎么修改。非常感谢!

var oCalendarChs=new PopupCalendar("oCalendarChs");    //初始化控件时,请给出实例名称:oCalendarChs
oCalendarChs.weekDaySting=new Array("日","一","二","三","四","五","六");
oCalendarChs.monthSting=new Array("一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月");
oCalendarChs.oBtnTodayTitle="今天";
oCalendarChs.oBtnCancelTitle="取消";
oCalendarChs.Init();
2011-06-14 08:54
dzt0001
Rank: 13Rank: 13Rank: 13Rank: 13
等 级:蒙面侠
威 望:5
帖 子:1281
专家分:4998
注 册:2005-10-12
得分:14 
代码给的不全

----我怎能在别人的苦难面前转过脸去----
2011-06-14 08:57
hongei
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2011-6-14
得分:0 
谢谢小飞侠,我不太懂这些,我把网页的源代码前半部分复制给你看看

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<script language="javascript" src="PopupCalendar.js" ></script>
<script >

var oCalendarChs=new PopupCalendar("oCalendarChs");    //初始化控件时,请给出实例名称:oCalendarChs
oCalendarChs.weekDaySting=new Array("日","一","二","三","四","五","六");
oCalendarChs.monthSting=new Array("一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月");
oCalendarChs.oBtnTodayTitle="今天";
oCalendarChs.oBtnCancelTitle="取消";
oCalendarChs.Init();
</script>



<html>
<head><META content="text/html; charset=gb2312" http-equiv=Content-Type><LINK
href="style.css" rel=stylesheet type=text/css>

</head>

<body bgcolor="#799AE1">
<center>
<p><b><font color="#008000">对指定时段内</font></b><b><font color="#008000">已被审批通过的工作项目进行查询</font></b></p>
    </center>
<form method="POST" action="eventallshowrun.asp">
   
    <table border="1" width="92%" id="table1" height="115">
        <tr>
            <td width="39%" height="39" nowrap>请您选择时间段:</td>
            <td height="39" nowrap width="23%">
            <p align="center"><input readonly type="text" name="StarData" onclick="getDateString(this,oCalendarChs)" value="开始时间"></td>
            <td height="39" width="14%" nowrap>
            <p align="center" nowrap>至</td>
            <td height="39" width="22%" nowrap>
            <p align="center" ><input readonly type="text" name="EndData" onclick="getDateString(this,oCalendarChs)" value="结束时间"></td>
        </tr>
        <tr>
            <td height="25" colspan="4" nowrap>
            <p align="center">按照
            
            <font color="#008000">
            <input type="radio" name="TimeClass" value="ETime" checked></font>项目发生时间&nbsp;&nbsp;

            <font color="#008000">
            <input type="radio" name="TimeClass" value="STime" ></font>项目填报时间&nbsp;&nbsp;
            <font color="#008000">
            <input type="radio" name="TimeClass" value="RTime"></font>项目被审核通过时间&nbsp;
            进行查询</td>
        </tr>
        <tr>
            <td width="39%" nowrap>请您选择项目类型:</td>
            <td width="23%" nowrap>
            <p align="center">
            <input type="radio" value="All" name="EventClass" checked>全部项目</td>
            <td width="14%" nowrap>
            <p align="center">
            <input type="radio" value="Add" name="EventClass">加分项目</td>
            <td width="22%" nowrap>
            <p align="center"><input type="radio" value="Sub" name="EventClass">减分项目</td>
        </tr>
    <tr>
            <td height="25" colspan="2" nowrap>
            <p align="left">选择需要进行查询的部门:</td>
            <td height="25" colspan="2" nowrap>
            <select name="DepSelect" size="1" >
2011-06-14 09:10
hongei
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2011-6-14
得分:0 
我已经找到解决办法了,原来控件是调用的这个文件 PopupCalendar.js 直接修改就可以了
2011-06-14 09:26



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-342753-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.047439 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved