当前位置:首页 » 业界相关

如何判断Text1.value

 Advertisement:

热门软件下载:


如何判断当text1.value值大于某值时停止运行??  
   
   
  <!doctype   html   public   "-//w3c//dtd   html   4.0   transitional//en">  
  <html>  
  <head>  
  <script   language="javascript">  
  <!--  
  function   img1_onclick()    
   
  {  
          text1.value=   text1.value/1   +   1;  
  img1.src   =   text1.value   +   ".jpg";  
  }  
  //-->  
  </script>  
  </head>  
   
  <body   ms_positioning="gridlayout">  
  <font   face="宋体"><input   id="text1"   style="z-index:   101;   left:   234px;   visibility:   hidden;   position:   absolute;   top:   236px"   type="text"   name="text1"   value="1">  
  <img   id="img1"   style="z-index:   102;   left:   8px;   position:   absolute;   top:   8px"   alt=""   src="1.jpg"   language="javascript"   onclick="return   img1_onclick()"></font>  
  </body>  
  </html>

推荐阅读

  • 阿尔卡特OT303电池改装 [详细内容]
  • 缤纷五一 过来人谈旅游型数码相机装备 [详细内容]
  • 惊喜精彩 OPPO首款视频MP3 X19评测 [详细内容]
  • 阿尔卡特OT320:不思进取的低档机 [详细内容]
  • 索尼爱立信发布高品质家用手机音响系统MDS-70 [详细内容]
  • 音乐不离左右 音乐手机5大致命诱惑 [详细内容]
  • 阿尔卡特OT320使用问题报告 [详细内容]
  • 网友回答:
    网友:estyle

    <script   language="javascript">  
      <!--  
      function   img1_onclick()    
       
      {  
              text1.value=   text1.value/1   +   1;  
              if(text1.value<=10)  
              {img1.src   =   text1.value   +   ".jpg";}  
              else   {return   false;}  
      }  
      //-->  
      </script>

    .  

    相关评论

    Login