提示,查看代码的时候,如果存在因页面宽度限制造成代码显示不全,你可以点右上角的按钮单独查看代码!!!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
<script src="js/jquery.fullPage.min.js"></script> <script> $(function(){ $('#dowebok').fullpage({ continuousVertical: true, afterRender: function(){ $('.invitation').addClass('bouncein'); setTimeout(function(){$('.page1 .word').addClass('bounce');},500); setTimeout(function(){$('.page1 .word1').addClass('bounceinR');},500); } ,afterLoad: function(anchorLink, index){ if(index == 1){ $('.invitation').addClass('bouncein'); setTimeout(function(){$('.page1 .word').addClass('bounce');},500); setTimeout(function(){$('.page1 .word1').addClass('bounceinR');},500); } if(index == 2){ $('.title').addClass('rotateinLB'); setTimeout(function(){$('.time').addClass('rotateinLB')},300); setTimeout(function(){$('.txt .text').addClass('rotateinLB')},1000); setTimeout(function(){$('.txt .tt').addClass('rotateinLB')},500); } if(index == 3){ $('.title').addClass('bounceinL'); $('.page3 .img').addClass('bouncein'); } if(index == 4){ $('.title').addClass('bounceinL'); } if(index == 5){ $('.title').addClass('bounceinL'); setTimeout(function(){$('.department').addClass('fadeinB');},200); setTimeout(function(){$('.page5 p').addClass('fadeinB');},500); setTimeout(function(){$('.DRcode').addClass('fadeinB');},800); } if(index == 6){ $('.title').addClass('fadeinB'); setTimeout(function(){$('.btn_chbm').addClass('fadeinB');},200); setTimeout(function(){$('.btn_mtbm').addClass('fadeinB');},500); } }, onLeave: function(index, direction){ if(index == 1){ $('.invitation').removeClass('bouncein'); $('.page1 .word').removeClass('bounce'); $('.page1 .word1').removeClass('bounceinR'); } if(index == 2){ $('.title').removeClass('rotateinLB'); $('.time').removeClass('rotateinLB'); $('.txt p').removeClass('rotateinLB'); } if(index == 3){ $('.title').removeClass('bounceinL'); $('.page3 .img').removeClass('bouncein'); } if(index == 4){ $('.title').removeClass('bounceinL'); } if(index == 5){ $('.title').removeClass('bounceinL'); $('.department').removeClass('fadeinB'); $('.page5 p').removeClass('fadeinB'); $('.DRcode').removeClass('fadeinB'); } if(index == 6){ $('.title').removeClass('fadeinB'); $('.btn_chbm').removeClass('fadeinB'); $('.btn_mtbm').removeClass('fadeinB'); } } }); setInterval(function(){ $.fn.fullpage.moveSlideRight(); }, 3000); //* music play and pause. Add by Lynn 2015-10-15 14:26:47 var oAudio = document.getElementById("audio"); oAudio.play(); $("#J-audio").click(function(){ if( oAudio.paused ) { oAudio.play(); $(this).addClass("play-audio"); }else{ oAudio.pause(); $(this).removeClass("play-audio"); } }); }); </script> |
发表评论