關於圖片放大縮小的js

來源:互聯網
上載者:User

<HTML>
 <HEAD>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <TITLE>火車網·全國鐵路客運線路</TITLE>
  <META content="全國鐵路客運線路展示了全國鐵路客貨運系統的運行線路。彙集全國數百條鐵路線構成的強大的鐵路網,覆蓋全國30多個省直轄市和特別行政區" name="description">
   <META content="火車票價,火車票查詢,火車票價查詢,全國鐵路客運線路" name="keywords">
    <SCRIPT language=javascript>
    <!--
    w=160.0;
    h=128.2;
    c=4;

    function btn1_onclick() {
     if (c<10) {
      c++;
      document.all("ditu1").width=Math.round(w*c);
      document.all("ditu1").height=Math.round(h*c);
     }
    }

    function btn2_onclick() {
     if (c>2) {
      c--;
      document.all("ditu1").width=Math.round(w*c);
      document.all("ditu1").height=Math.round(h*c);
     }
    }
    //-->
    </SCRIPT>
   </HEAD>
   <BODY text=#000000 bgColor=#ffffff leftMargin=0 topMargin=0>
    <CENTER>
    </SPAN>
   </TD>
  </TR>

 </TABLE>
 <BR>
  &nbsp;&nbsp;
  <INPUT id=btn1 accessKey=Z onclick="return btn1_onclick()" type=button value=Z.放大 name=btn1>

   &nbsp; <INPUT id=btn2 accessKey=X onclick="return btn2_onclick()" type=button value=X.縮小 name=btn2>

    <BR><BR>
     <TABLE cellSpacing=0 cellPadding=0 width=750 bgColor=#cc9900 border=0><!--DWLayoutTable-->
      <TBODY>
       <TR>
        <TD vAlign=top width=750>
         <TABLE cellSpacing=1 cellPadding=0 width="100%" border=0><!--DWLayoutTable-->

          <TBODY>
           <TR>
            <TD vAlign=top align=middle bgColor=#ffffff>
             <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0><!--DWLayoutTable-->
              <TBODY>
               <TR>
                <TH vAlign=top align=middle width="100%" height=513><IMG
                 id=ditu1 height=513 alt=[全國鐵路客運線路]
                 src="images/railway_cn.gif"
                 width=640
                 border=0>
                </TH>
               </TR>
              </TBODY>
             </TABLE>
            </TD>
           </TR>
          </TBODY>
         </TABLE>
        </TD>
       </TR>
      </TBODY>
     </TABLE>
    </CENTER>
   </BODY>
  </HTML>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.