$(function(){ var tabtitle = ".linkbox .yt dt a"; var tabcontent = ".linkbox .yb dd"; $(tabtitle + ":first").addclass("hover"); $(tabcontent).not(":first").hide(); $(tabtitle).unbind("mouseover").bind("mouseover", function(){ $(this).siblings("a").removeclass("hover").end().addclass("hover"); var index = $(tabtitle).index( $(this) ); $(tabcontent).eq(index).siblings(tabcontent).hide().end().fadein(0); }); }); $(function(){ var tabtitle = ".xuez dt a"; var tabcontent = ".xuez dd"; $(tabtitle + ":first").addclass("hover"); $(tabcontent).not(":first").hide(); $(tabtitle).unbind("mouseover").bind("mouseover", function(){ $(this).siblings("a").removeclass("hover").end().addclass("hover"); var index = $(tabtitle).index( $(this) ); $(tabcontent).eq(index).siblings(tabcontent).hide().end().fadein(0); }); }); $(function(){ var tabtitle = ".sch dt a"; var tabcontent = ".sch dd"; $(tabtitle + ":first").addclass("hover"); $(tabcontent).not(":first").hide(); $(tabtitle).unbind("mouseover").bind("mouseover", function(){ $(this).siblings("a").removeclass("hover").end().addclass("hover"); var index = $(tabtitle).index( $(this) ); $(tabcontent).eq(index).siblings(tabcontent).hide().end().fadein(0); }); }); $(function(){ var tabtitle = ".newsb dt a"; var tabcontent = ".newsb dd"; $(tabtitle + ":first").addclass("hover"); $(tabcontent).not(":first").hide(); $(tabtitle).unbind("mouseover").bind("mouseover", function(){ $(this).siblings("a").removeclass("hover").end().addclass("hover"); var index = $(tabtitle).index( $(this) ); $(tabcontent).eq(index).siblings(tabcontent).hide().end().fadein(0); }); });