天天看點

關于html中script和ActiveX互動的問題

關于html中script和ActiveX互動的問題

<html>   

關于html中script和ActiveX互動的問題
關于html中script和ActiveX互動的問題

  <head>   

關于html中script和ActiveX互動的問題

  <meta   http-equiv="content-type"   content="text/html;   charset=gb2312">   

關于html中script和ActiveX互動的問題

  <title>月曆控件</title>   

關于html中script和ActiveX互動的問題

  </head>   

關于html中script和ActiveX互動的問題
關于html中script和ActiveX互動的問題

  <body>   

關于html中script和ActiveX互動的問題

  <object   id=dtpicker   style="font-size:   12px;   left:   0px;   width:   110px;   font-family:   宋體;   top:   0px;   height:   20px"     

關于html中script和ActiveX互動的問題

  codebase=http://activex.microsoft.com/controls/vb6/mscomct2.cab   classid="clsid:20dd1b9e-87c4-11d1-8be3-0000f8754da1">   

關于html中script和ActiveX互動的問題

  <param   name="_extentx"   value="2910">   

關于html中script和ActiveX互動的問題

  <param   name="_extenty"   value="529">   

關于html中script和ActiveX互動的問題

  <param   name="_version"   value="393216">   

關于html中script和ActiveX互動的問題

  <param   name="mousepointer"   value="0">   

關于html中script和ActiveX互動的問題

  <param   name="enabled"   value="1">   

關于html中script和ActiveX互動的問題

  <param   name="oledropmode"   value="0">   

關于html中script和ActiveX互動的問題

  <param   name="calendarbackcolor"   value="-2147483643">   

關于html中script和ActiveX互動的問題

  <param   name="calendarforecolor"   value="-2147483630">   

關于html中script和ActiveX互動的問題

  <param   name="calendartitlebackcolor"   value="7798784">   

關于html中script和ActiveX互動的問題

  <param   name="calendartitleforecolor"   value="16777215">   

關于html中script和ActiveX互動的問題

  <param   name="calendartrailingforecolor"   value="7829367">   

關于html中script和ActiveX互動的問題

  <param   name="checkbox"   value="0">   

關于html中script和ActiveX互動的問題

  <param   name="customformat"   value="yyyy-mm-dd">   

關于html中script和ActiveX互動的問題

  <param   name="dateisnull"   value="0">   

關于html中script和ActiveX互動的問題

  <param   name="format"   value="662831107">   

關于html中script和ActiveX互動的問題

  <param   name="updown"   value="0">   

關于html中script和ActiveX互動的問題

  <param   name="currentdate"   value="37582.0927083333">   

關于html中script和ActiveX互動的問題

  <param   name="maxdate"   value="2958465">   

關于html中script和ActiveX互動的問題

  <param   name="mindate"   value="-109205"></object>   

關于html中script和ActiveX互動的問題
關于html中script和ActiveX互動的問題

  <a   href="javascript:get_date()">get_date()</a>   

關于html中script和ActiveX互動的問題
關于html中script和ActiveX互動的問題

  <script   for=dtpicker   event=closeup>...   

關于html中script和ActiveX互動的問題

  alert(dtpicker.year+"-"+dtpicker.month+"-"+dtpicker.day);   

關于html中script和ActiveX互動的問題

  </script>   

關于html中script和ActiveX互動的問題
關于html中script和ActiveX互動的問題

  <script   language="javascript">...   

關于html中script和ActiveX互動的問題

  function   get_date()   

關于html中script和ActiveX互動的問題
關于html中script和ActiveX互動的問題

  ...{   

關于html中script和ActiveX互動的問題
關于html中script和ActiveX互動的問題

  }   

關于html中script和ActiveX互動的問題
關于html中script和ActiveX互動的問題

  </body>   

關于html中script和ActiveX互動的問題

  </html>

滑鼠移動到上面或者用代碼直接取值時,總會提示“在此頁上的activex  控件和本頁的其他部分的互動可能不安全。你想允許這種互動嗎?”。選擇允許就可以了,簡單吧。

繼續閱讀