首先,为标题道歉,我想不出合适的标题。
我不确定为什么下面代码中的 hide() 函数在触发时在 firebug 中返回错误,我很确定一旦我消除了这个缺陷,其余代码将正常工作,任何帮助/建议将不胜感激.
Firebug 控制台错误:
hide is not defined
it-services() it-services (line 396)
time = setTimeout("hide()",3000);
到目前为止我的代码:
var time;
$("#form").mouseenter(function() {
clearTimeout(time);
$(this).delay(800).animate({
right: 0
}, 2000);
}).mouseleave(function() {
function hide() {
$(this).delay(800).animate({
right: "-325px"
}, 1000);
}
time = setTimeout(hide,3000);
});
非常感谢大家提前提供的任何帮助,
担。