JS for image enlargement and reduction

Source: Internet
Author: User

<HTML>
<HEAD>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
<TITLE> huoche.com-China Railway Passenger Line </TITLE>
<META content = "the national railway passenger line shows the operating lines of the national railway passenger and freight system. A powerful railway network composed of hundreds of railway lines nationwide, covering more than 30 provinces and municipalities and Special Administrative Regions "name =" description ">
<META content = "train fare, train ticket query, train fare query, National Railway Passenger Line" 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;
<Input id = btn1 accesskey = z onclick = "Return btn1_onclick ()" type = button value = Z. Enlarge name = btn1>

& Nbsp; <input id = btn2 accesskey = x onclick = "Return btn2_onclick ()" type = button value = x. Narrow down name = btn2>

<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> Id = ditu1 height = 513 alt = [National Railway Passenger Line]
Src = "images/railway_cn.gif"
Width = 640
Border = 0>
</TH>
</Tr>
</Tbody>
</Table>
</TD>
</Tr>
</Tbody>
</Table>
</TD>
</Tr>
</Tbody>
</Table>
</CENTER>
</BODY>
</HTML>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.