<img src="images/login.gif" width="40" height="20"  onclick="document.fom1.Submit()">

解决方案 »

  1.   

    onclick="fom1.submit()" //小写s
      

  2.   

    <input type="image" border="0" name="sc" src="images/login.gif" width="40" height="20">
      

  3.   

    <script language="Javascript">
    thank you!
    但是我还是有个问题那就是为什么我点击提交后不执行下面的程序呢???
    function vv()
    {
      if( document.form1.name.value=="")|| (document.form1.passwrod.value=="")
      {
         alert("请输入关键字");
         return false;
     }
        return true;
      }
    </script>                  <form name="form1" onsubmit="return vv(this)"  method="post" action="login.asp">
                        <br>
                        <p align="center"><font color="#000000">登陆名:</font> 
                          <input name="name" type="text" id="name" size="15">
                          <br>
                          <font color="#000000">密&nbsp;&nbsp;码:</font> 
                          <input name="password" type="password" id="pw" size="15">
                        </p>
                        <p align="center"> <font style="cursor:hand"><img src="images/login.gif" width="40" height="20"  onclick="document.form1.submit()"></font>&nbsp;&nbsp;<font style="cursor:hand"><a href="REGIST.HTM"><img src="images/reg.gif" width="40" height="20" border="0"></a></font></p>
                      </form>
      

  4.   

    <form name="form1" method="post">
    <input src="images/login.gif" width="42" height="22" type="image">
    </form>
      

  5.   

    上面还差一点。。
    <form name="form1" method="post" action="" >
    <input src="images/login.gif" width="42" height="22" type="image">
    </form>
      

  6.   

    再加个函数:
    function WritePK(){
      
    }
    试试