【发布时间】:2012-08-30 23:52:54
【问题描述】:
我有这段代码,它运行良好,但我希望它是动态的。
$(".nav a").click(function () {
var getid = $(this).attr('id');
$("#background-wrapper").fadeOut("slow");
$("#page_box").fadeOut("slow");
$("header").fadeOut("slow");
$("footer").fadeOut("slow", function () {
window.location = getid+".php";
});
});
我想先执行淡出,然后再使用 href 引导它。
我想要的是第一个
$(".nav a").click(function () {
var getid = $(this).attr('id');
$("#background-wrapper").fadeOut("slow");
$("#page_box").fadeOut("slow");
$("header").fadeOut("slow");
$("footer").fadeOut("slow");
});
然后触发这个
.nav a = href = "link"
【问题讨论】:
标签: jquery