所属分类:网页特效-其他特效
<link href="assets/cn/css/css.css" rel="stylesheet">
<script src="assets/cn/js/1.js"></script>
$(function () {
$(".Left a").eq(0).addClass("cur");
$("area").each(function (index, element) {
$(this).hover(function () {
$("#bg_img").css("background-position", "9px -" + index * 691 + "px");
}, function () {
$("#bg_img").css("background-position", "9px 691px");
});
});
$(".company_cont .comBox").eq(0).show();
$(".companyBtn a").click(function () {
var index = $(this).index();
//alert(index);
$("#Type").html(index);
$(this).addClass("cur").siblings().removeClass("cur");
$(".company_cont .comBox").eq(index).fadeIn(200).siblings().hide();
});
$(".jump_map .close").click(function () {
$(".jump_map").fadeOut(200);
})
})
<div class="map">
……
</div>