main
liudan 2 years ago
parent 6c8603222f
commit 021552a240
  1. 18
      index.html

@ -87,7 +87,7 @@
width: 100%;
/* height: 20%; */
height:calc(100vh);
display: flex;
/* display: flex; */
color: white;
/*justify-content: center;*/
align-items: center;
@ -608,7 +608,7 @@
}
container.style.top = -index * viewHeight+index*100 + 'px'
}
// if(index==1)
console.log(index,"--==")
if(index%2==0){
$('.logo_wrap img').attr('src','images/logo2.png')
$('.nav li a').css('color','#ffffff')
@ -647,6 +647,14 @@
$($('.electricItem>.addIon')[0]).css('display','none')
$($('.electricItem')[0]).css('background','rgba(19,75,161,0.8)')
$('.electricItem').mouseenter(function(){
console.log($(this).parent().siblings().children().children('.addIon'))
$(this).css('background','rgba(19,75,161,0.8)')
$(this).parent().siblings().children().css('background','transparent')
$($(this).children()[3]).css('display','none')
$($(this).children()[2]).css('display','block')
$($(this).parent().siblings().children().children('button')).css('display','none')
$($(this).parent().siblings().children().children('.addIon')).css('display','block')
if($(this).children()[1].innerText=='先进材料'){
$('.section3').css ('background','url(images/先进材料-bg.jpg) center top no-repeat')
$('.second3Title>.title')[0].innerText = '先进材料'
@ -675,11 +683,7 @@
$('.second3Title>.textsecond3')[0].innerHTML = '重点关注创新医药、高端医疗器械、CXO(合同研发生产组织)、BT(生物技术)+IT(信息技术)融合、产业链配套、商贸供应链、医'
}
})
$('.electricItem').mouseleave(function(){
// $($('.electricItem>button')[0]).css('display','block')
// $($('.electricItem>.addIon')[0]).css('display','none')
// $($('.electricItem')[0]).css('background','rgba(19,75,161,0.8)')
})
$('.number1').leoTextAnimate({delay:0,autorun:true,fixed:[',',':','.'],start:'-'});
$('.number2').leoTextAnimate({delay:0,autorun:true,fixed:[',',':','.'],start:'-'});
$('.number3').leoTextAnimate({delay:0,autorun:true,fixed:[',',':','.'],start:'-'});

Loading…
Cancel
Save