$(function(){ $(".word2").moveXY({effect:"yToTop"}); });
$(".alllink").find("li").each(function(index, element) { var thisindex=$(this).index(); $(this).on("mouseenter",function(){ $(this).find("img").attr("src","images/index_a_hover_"+(thisindex+1)+".jpg");; }); $(this).on("mouseleave",function(){ $(this).find("img").attr("src","images/index_link_"+(thisindex+1)+".jpg");; }); });