一个js文件改变链接的颜色



所以我创建了这个网站:http://galant-jeans.x10.mx正如你所看到的,如果你悬停在它们身上,然后离开,它们就会变成蓝色。css中没有提到这一点,但它应该在menu.js文件中。问题是我找不到它。以下是.js文件的链接:http://galant-jeans.x10.mx/js/menu.js

我怀疑menu.js:中有这个构造

if ( fx.start )
                fx.elem.style[attr] = "rgb(" + [
                    Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0]), 255), 0),
                    Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1]), 255), 0),
                    Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2]), 255), 0)
                ].join(",") + ")";
        }
    });

使用Firebug!它显示在第112行的index.css中有一个div#menu a:hover条目,它改变了背景。

最新更新