You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
712 B
JavaScript
23 lines
712 B
JavaScript
6 years ago
|
/*
|
||
|
CHT Business Global Script Document
|
||
|
中华游
|
||
|
*/
|
||
|
$(function(){
|
||
|
(function(){
|
||
|
var obj = $('#rollBlocl');
|
||
|
var objr= $('#menu>ul>li.active');
|
||
|
if(objr.size()>0){
|
||
|
var op = objr.position();
|
||
|
var w = objr.width();
|
||
|
obj.animate({left:(op.left-1),width:(w-7)},100);
|
||
|
$('#menu>ul>li').removeClass('active').find(">a").removeClass('active');
|
||
|
objr.addClass('active').find('>a').addClass('active');
|
||
|
}
|
||
|
})();
|
||
|
|
||
|
$(".topIcon").hide();
|
||
|
$(function(){
|
||
|
$(window).scroll(function(){if ($(window).scrollTop() > 100) {$(".topIcon").fadeIn(1500);}else {$(".topIcon").fadeOut(1500);}});
|
||
|
$(".topIcon").click(function (){$('body,html').animate({scrollTop : 0}, 1000);return false;});
|
||
|
});
|
||
|
});
|