X7ROOT File Manager
Current Path:
/var/www/vhosts/hwtw.com.tw/hw/js
var
/
www
/
vhosts
/
hwtw.com.tw
/
hw
/
js
/
📁
..
📄
bootstrap.min.js
(38.75 KB)
📄
bootstrap.min_4.js
(58.6 KB)
📄
effect.js
(2.36 KB)
📁
fancybox
📄
jquery.appear.js
(2.7 KB)
📄
jquery.easing.1.3.js
(7.91 KB)
📄
jquery.flexslider-min.js
(20.92 KB)
📄
jquery.isotope.min.js
(15.66 KB)
📄
jquery.js
(90.92 KB)
📄
jquery.localScroll.min.js
(1.36 KB)
📄
jquery.nicescroll.min.js
(58.6 KB)
📄
jquery.scrollTo-1.4.3.1-min.js
(2.38 KB)
📄
jquery.scrollTo.min.js
(2.38 KB)
📄
main.js
(687 B)
📄
skrollr.min.js
(10.95 KB)
📄
stellar.js
(22.74 KB)
Editing: effect.js
$(document).ready(function(){ //header 選單特效 var last_x=0,last_y=0; $("#header-ul li,#index-ul li").mouseenter(function(e){ var mouseX = e.pageX || e.clientX + scrollX; var itemLeft = $(this).context.offsetLeft; var itemWitdth = $(this).context.offsetWidth; if(mouseX<=(itemLeft+itemWitdth/2)){ $(this).removeClass("fRight").addClass("fLeft"); }else{ $(this).removeClass("fLeft").addClass("fRight"); } }).mouseout(function(e){ var mouseX = e.pageX || e.clientX + scrollX; var itemLeft = $(this).context.offsetLeft; var itemWitdth = $(this).context.offsetWidth; if(mouseX<=(itemLeft+itemWitdth/2)){ $(this).removeClass("fLeft").addClass("fRight"); }else{ $(this).removeClass("fRight").addClass("fLeft"); } }) $(window).scroll(function() { //淡出特效 $(".slideanim").each(function(){ var pos = $(this).offset().top; var winTop = $(window).scrollTop(); if (pos < winTop + 700) { $(this).addClass("slide"); } }); //navbar fixed特效 var navbar = $("#header_div>div.navbar"); if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) { $(navbar).addClass("w3-bar w3-card w3-animate-top w3-white"); } else { $(navbar).removeClass("w3-bar w3-card w3-animate-top w3-white"); } }); $(window).resize(function() { if($('.index_square_7').length>0){ var offsetTop=$('.index_square_7').offset().top; var width=$('.index_square_7').width(); $(".index_header_div2").css("height",offsetTop+width*1.414+"px"); $(".index_content_title").css("width",width*1.414+"px"); } }); $(window).trigger('resize'); $("#dropdown_menu_li,#dropdown_menu").on("mouseover",function(){ $("#dropdown_menu").show(); }); $("#dropdown_menu_li,#dropdown_menu").on("mouseout",function(){ $("#dropdown_menu").hide(); }); img_cycle(); }); var cycle_start=3; function img_cycle(){ // alert("R"); var round_start=cycle_start; for (var i = 6; i <=8; i++) { $(".index_square_"+i).css("background-image","url(img/index/index_square_"+round_start+".png)"); console.log($(".index_square_"+i)); round_start++; if(round_start>=6){ round_start=3; } } cycle_start++; if(cycle_start>=6){ cycle_start=3; } setTimeout(img_cycle, 3000); };
Upload File
Create Folder