Server : Apache System : Linux iZ2vcgyutqttsd1p850kl8Z 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64 User : www ( 1000) PHP Version : 5.6.40 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv Directory : /www/wwwroot/saimikebio.com/js/ |
$(document).ready(function() { var scroll_h=0; var scrollstart = $("#main-nav-holder").offset().top; var os_0 = $("#os_canshu").offset().top; var os_1 = $("#os_jieshao").offset().top; var os_2 = $("#os_pinglun").offset().top; var os_3 = $("#os_shouhou").offset().top; window.onscroll = function(){ var bodyScrollTop = document.documentElement.scrollTop || document.body.scrollTop; if (bodyScrollTop > top11){ obj11.style.position = (isIE6) ? "absolute" : "fixed"; obj11.style.top = (isIE6) ? bodyScrollTop + "px" : "0px"; } else { obj11.style.position = "static"; } var bus_r = $(".goods_right").height();//设置内容区右悬浮背景高度 os_0 = $("#os_canshu").offset().top||document.getElementById("os_canshu").offsetTop; os_1 = $("#os_jieshao").offset().top||document.getElementById("os_jieshao").offsetTop; os_2 = $("#os_pinglun").offset().top||document.getElementById("os_pinglun").offsetTop; os_3 = $("#os_shouhou").offset().top||document.getElementById("os_shouhou").offsetTop; if(!$("#main_widget_3")){scroll_3=os_5;} scroll_h = document.body.scrollTop+document.documentElement.scrollTop; if(scroll_h>os_0-150){$(".abs_ul li").eq(0).addClass("abs_active").siblings().removeClass("abs_active");} if(scroll_h>os_1-150){$(".abs_ul li").eq(1).addClass("abs_active").siblings().removeClass("abs_active");} if(scroll_h>os_2-150){$(".abs_ul li").eq(2).addClass("abs_active").siblings().removeClass("abs_active");} if(scroll_h>os_3-150){$(".abs_ul li").eq(3).addClass("abs_active").siblings().removeClass("abs_active");} } $(".abs_ul li").hover(function(){ $(this).addClass("abs_hot").siblings().removeClass("abs_hot"); },function(){ $(".abs_ul li").removeClass("abs_hot"); }); $(".abs_ul li").click(function(){ var os_index = $(this).index(); $(this).addClass("abs_active").siblings().removeClass("abs_active"); if(os_index==0){$('html,body').animate({scrollTop:os_0-40},300);return false;} if(os_index==1){$('html,body').animate({scrollTop:os_1-40},300);return false;} if(os_index==2){$('html,body').animate({scrollTop:os_2-40},300);return false;} if(os_index==3){$('html,body').animate({scrollTop:os_3-40},300);return false;} }); }); var tttt = 0; function change_widget(i, obj){ $("#main-nav boldtit_list").removeClass("h_list"); $(obj).addClass("h_list").siblings().removeClass("h_list"); for(j=1; j<=4; j++){ $("#main_widget_"+j).hide(); } if(i==2){ $("#main_widget_2").show(); var top = parseInt($("#wrapper").offset().top) - 40; $("html,body").animate({ scrollTop: top }, 500); return; } $("#main_widget_"+i).show(); //if(i==3) SetiframeHeight('iframe_main'); if(i==3){ scroll_3 = $("#main_widget_3").offset().top; return; } scroll_3 = $("#os_online").offset().top; }