JavaScript技术要点

来源:互联网 发布:远程桌面登陆软件 编辑:程序博客网 时间:2024/04/30 15:37

JavaScript技术 

图片由浅到深的渐变
 <SCRIPT language=javascript1.2>
 <!--
  function high(which2){
   theobject=which2
   highlighting=setInterval("highlightit(theobject)",50)
  }
  function low(which2){
   clearInterval(highlighting)
   which2.filters.alpha.opacity=40
  }
  function highlightit(cur2){
   if (cur2.filters.alpha.opacity<100)
    cur2.filters.alpha.opacity+=10
   else if (window.highlighting)
    clearInterval(highlighting)
  }
 -->
 </script>
 <img width="220" height="116" onmouseout=low(this) onmouseover=high(this) style="FILTER: alpha(opacity=40)" src="LOGO.jpg" >

显示主页最后更新日期
<script>
  document.write("最后更新日期:"+document.lastModified+"")
</script>

原创粉丝点击