把一张图片变形扭曲成各种不同的长宽

  第一步:把如下代码加入<body>区域中

  <img src="http://my.6to23.com/redriver/helpor/helpor.gif" name="u" border="0" alt="很好玩的">

  <script language="JavaScript">

  var b = 1;

  var c = true;

  function fade(){

  if(document.all);

  if(c == true) {

  b++;

  }

  if(b==100) {

  b--;

  c = false

  }

  if(b==10) {

  b++;

  c = true;

  }

  if(c == false) {

  b--;

  }

  u.width=150 + b;

  u.height=125 - b;

  setTimeout("fade()",50);

  }

  </script>

  第二步:把<body>区域中改为

  <body bgcolor="#fef4d9" onLoad="fade()">