<script type="text/javascript">
$(function() {
$('.index_enterprise_re ul li').mouseover(function() {
$(this).find(".tips_job_info").show()
})
$('.index_enterprise_re ul li').mouseout(function() {
$(this).find(".tips_job_info").hide()
})
});
// 名企
if($('.swiper-slide').length > 2){
var slideLoop = true;
}else{
var slideLoop = false;
}
new Swiper('#newurgentCtrl', {
slidesPerView: 3,
spaceBetween: 1,
autoplay: true,
loop: slideLoop
});
layui.use(['carousel','flow'], function() { //layui 轮播 test1 test2
var carousel = layui.carousel;
var flow = layui.flow;
flow.lazyimg();
carousel.render({
elem: '#test1',
width: '675px',
height: '315px'
});
carousel.render({
elem: '#test2',
width: '290px',
height: '190px',
indicator: 'none' //指示器属性;隐藏:none,容器内部:inside,容器外部:outside;
});
});
//顶部伸展广告
if ($("#js_ads_banner_top_slide a").length > 0) { //判断当前广告是否展开,如果没有,则执行下面代码
var $slidebannertop = $("#js_ads_banner_top_slide"),
$bannertop = null;
if($("#js_ads_banner_top a").length > 0){
$bannertop = $("#js_ads_banner_top");
}
setTimeout(function() {
if($bannertop){
$bannertop.slideUp(1000);
}
$slidebannertop.slideDown(1000);
}, 1500); //1500毫秒(1.5秒)后,小广告收回,大广告伸开,执行时间都是1秒(1000毫秒)
setTimeout(function() {
$slidebannertop.slideUp(1000, function() {
if($bannertop){
$bannertop.slideDown(1000);
}
});
}, 3000); //3.0秒(3000毫秒)之后,大广告收回,小广告展开。
}
$(document).ready(function() {
//首页登录框以及登录后显示各会员中心内容
var loginIndex = '{yun:}url m=ajax c=DefaultLoginIndex{/yun}';
$.post(loginIndex, {
rand: Math.random()
}, function(data) {
$(".hp_login").html(data);
});
//热招人才->推荐简历
$(document.body).on('mouseenter', '.ran-list li', function() {
$(this).addClass('show').find('.moren').hide();
$(this).find('.lr-show').show();
$(this).siblings().removeClass('show').find('.moren').show();
$(this).siblings().find('.lr-show').hide();
});
var a = '{yun:}if $config.sy_footer_fix=="1"{/yun}';
$.get('{yun:}url m=ajax c=footertj{/yun}', {
rand: Math.random()
}, function(data) {
$(".tip_bottom_left").html(data);
if($('#tip_bottom')){
$('#tip_bottom').show();
}
})
var b = '{yun:}/if{/yun}';
});
$('.new_index_tit span').each(function(){
$(this).click(function(){
if(!$(this).attr("data-no")){
$(this).parent().find("span").removeClass("new_index_tit_cur")
$(this).addClass("new_index_tit_cur")
}
var id=$(this).attr("data-id");
$(this).parent().parent().find(".index_zw_item").hide()
$("#"+id).show()
})
})
</script>