1
我在网站上工作,客户希望能够访问网站上每个其他页面的服务页面上的动态内容,但下面的代码使其显示第一个列表中的“div”,而不是被点击的锚。从另一个页面访问动态内容
$(document).ready(function()
{
//hide the all div except first one
$('.msg_body:not(:first)').hide();
//when the anchor is clicked content opens like shutter
$("a.linkclass").click(function()
{
$('.msg_body').hide("slow");
$($(this).attr("href")).show("slow");
});
});
该网站是www.quantumrenovations.net
太谢谢你了Yanick。它完美的作品! – 2011-03-25 21:53:40
很高兴听到它!不要忘记点击“检查”标记接受这个答案。 :) – 2011-03-25 22:05:32