使用CSS替换图片
star:expression(
    onmouseover = function()
    {
        /*替换图片*/
        if(this.hover != null){
          this.name = this.src;
          this.src = this.src.replace('.jpg', '_over.jpg');
          this.HasChg = 1;
       }
   },
   onmouseout = function()
  {  
       /*还原本来的图片*/
     if(this.HasChg != null){
        this.src = this.name;
        this.HasChg = null;
    }
}

相关文章:

  • 2021-10-25
  • 2022-12-23
  • 2021-10-23
  • 2021-05-23
  • 2021-04-12
  • 2021-06-19
  • 2021-05-21
猜你喜欢
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
  • 2021-07-20
相关资源
相似解决方案