字体:  

给动态文本框加个日历控件,奇怪的问题

hnchina 发表于: 2008-8-26 22:52 来源: PHPChina 开源社区门户

<META NAME="Description" CONTENT="">
  <link rel="stylesheet" type="text/css" media="all" href="calendar-win2k-cold-1.css" title="win2k-cold-1" />

  
  <script type="text/javascript" src="js/calendar.js"></script>

  
  <script type="text/javascript" src="js/calendar-zh.js"></script>

  <script type="text/javascript" src="js/calendar-setup.js"></script>
</HEAD>


  <script>   
  function   addline(content){   
         
  newline=document.all.test.insertRow();   
  newline.insertCell().innerHTML='<input size=10 type="text" name="tt[]"><input size=10 type="text" name="aa[]" id="begin_date_b"><input type="reset" value="..."
onclick="return showCalendar('begin_date_b', 'y-m-d');">
这个地方想增加一日历控件报错啊,应该怎么加?

<input size=10 type="text" name="bb[]"><input type="button" value="删除"   onclick="del()"></tr>'   
   
  }   
  function   del(){   
  document.all.test.deleteRow(window.event.srcElement.parentElement.parentElement.rowIndex);   
  }   
  </script>
  

<form action="bbccmail.php" method="POST">   
  <input   type="button"   onclick="addline()"   value="增加一行">   
  <table   border="1"   id="test" cellpadding="1" cellspacing="1">      
     <tr>
     <td width="250">提醒项目  提醒时间  提醒邮件 </td></tr>
      <tr>   
        <td colspan="3"><input size=10 type="text" name="tt[]" ><input size=10 type="text" name="aa[]" id="begin_date_b" ><input type="reset" value="..."
onclick="return showCalendar('begin_date_b', 'y-m-d');"><input size=10 type="text" name="bb[]"></td>
        </tr>   
  </table>   
  <input value="bbccdd"type="submit">   
  </form>

最新回复

hnchina at 2008-8-27 11:01:37
高手?
hnchina at 2008-8-27 14:14:48
高手?