1. <script>
  2.  function hover(id,opacity){
  3.  document.all[id].filters.alpha.opacity = opacity;
  4.  }
  5.  
  6.  function opacify(id,delay,start,stop){
  7.  opacify(id,delay,start,stop,0);
  8.  }
  9.  
  10.  function opacify(id,delay,start,stop,offset){
  11.  offset *= 1000;
  12.  if (document.all){
  13.  hover(id,start);
  14.  setTimeout("fadeOut('"+id +"',"+ delay +","+ start +","+stop +")",offset);
  15.  }
  16.  }
  17.  
  18.  function fadeOut(id,delay,start,stop){
  19.  if (document.all[id].filters.alpha.opacity > stop){
  20.  document.all[id].filters.alpha.opacity -= 2;
  21.  setTimeout("fadeOut('"+ id +"',"+ delay +","+ start +","+ stop +")",delay);
  22.  }
  23.  else {
  24.  setTimeout("fadeIn('"+ id +"',"+ delay +","+ start +","+ stop +")",delay);
  25.  }
  26.  }
  27.  
  28.  function fadeIn(id,delay,start,stop){
  29.  if (document.all[id].filters.alpha.opacity < start){
  30.  document.all[id].filters.alpha.opacity += 2;
  31.  setTimeout("fadeIn('"+ id +"',"+ delay +","+ start +","+ stop +")",delay);
  32.  }
  33.  else {
  34.  setTimeout("fadeOut('"+ id +"',"+ delay +","+ start +","+ stop +")",delay);
  35.  }
  36.  }
  37.  
  38.  
  39. </script>
  40. <img src="image/005s.jpg" name="imageName" onLoad="opacify('imageName',22,100,20)" style="filter:alpha(opacity=100);" alt="7wind" />
From: 本站原创
已经有0个回复 引用(0)
看完了要说点啥?

昵称

网址

电邮

打开UBB 表情 打开表情 隐藏 记住我 [注册]