<html>
<head>
<script language="JavaScript" src="calendar.js">
</script>
</head>
<body>
<form name="form1" method="post" action="gzdx_gzdxzb">
<input onfocus="calendar()" size="20">
<input name="txt1" onfocus="calendar()" size="20">:<img src="" onclick="calendar(document.all.txt1)">
<input name="txt2" onfocus="calendar()" size="20">:<img src="" onclick="calendar(document.all.txt2)">
</form>
</body>
</html>

解决方案 »

  1.   

    <html>
    <head>
    <script language="JavaScript" src="calendar.js">
    </script>
    </head>
    <body>
    <form name="form1" method="post" action="gzdx_gzdxzb">
    <input onfocus="calendar()" size="20">
    <input name="txt1" onfocus="calendar()" size="20">:<input type="image" src="" onclick="calendar(document.all.txt1)">
    <input name="txt2" onfocus="calendar()" size="20">:<input type="image"  src="" onclick="calendar(document.all.txt2)">
    </form>
    </body>
    </html>
      

  2.   

    <input type="image" src="1.gif" onclick="calendar(document.all.txt2)">
      

  3.   

    <input type="image" src="1.gif" onclick"="calendar(document.all.txt2)>
    <img src = "aa.gif" onclick ="calendar(document.all.txt2)