mjon_git/src/main/webapp/js/new_main.js
2023-06-12 11:15:02 +09:00

50 lines
1.9 KiB
JavaScript

$(document).ready(function(e){
$(".box_1").mouseover(function(){
$(".box_1 ul li:last-child").children().css("display","block")
})
$(".box_1").mouseleave(function(){
$(".box_1 ul li:last-child").children().css("display","none")
})
$(".box_2").mouseover(function(){
$(".box_2 ul li:last-child").children().css("display","block")
})
$(".box_2").mouseleave(function(){
$(".box_2 ul li:last-child").children().css("display","none")
})
$(".box_3").mouseover(function(){
$(".box_3 ul li:last-child").children().css("display","block")
})
$(".box_3").mouseleave(function(){
$(".box_3 ul li:last-child").children().css("display","none")
});
$(".sel_date ul li a").click(function () {
$(this).addClass("sel_date_on").parent().siblings().children().removeClass("sel_date_on");
})
$(".hd_submenu ul li:first-child a img").mouseover(function(){
$(this).attr("src","/img/post/top01_hover.png");
});
$(".hd_submenu ul li:first-child a img").mouseleave(function(){
$(this).attr("src","/img/post/top01.png");
});
$(".hd_submenu ul li:nth-child(2) a img").mouseover(function(){
$(this).attr("src","/img/post/top02_hover.png");
});
$(".hd_submenu ul li:nth-child(2) a img").mouseleave(function(){
$(this).attr("src","/img/post/top02.png");
});
$("table tr td:nth-child(1) input").click(function(){
$(this).parent().parent().addClass("list_check_on");
$(this).click(function () {
$(this).parent().parent().removeClass("list_check_on");
});
})
$("table tr th:nth-child(1) input").click(function(){
$(this).parent().parent().siblings().addClass("list_check_on");
$(this).click(function () {
$(this).parent().parent().siblings().removeClass("list_check_on");
});
})
})