var t = ""; $(document).ready(function(){ var URL= window.location.href; var jiequ=URL.split("#"); if(jiequ[1] == 'ReferenceTab'){ //参考文献 $('#cankaowenxian').next('div').show(); $('#cankaowenxian').parent('div').siblings().find('.collapse').hide(); setTimeout('t=$("#cankaowenxian").offset().top;$(window).scrollTop(t);', 1); }else if(jiequ[1] == 'RelatedCitationTab'){ //相关文章 $('#xiangguanwenzhang').next('div').show(); $('#xiangguanwenzhang').parent('div').siblings().find('.collapse').hide(); setTimeout('t=$("#xiangguanwenzhang").offset().top;$(window).scrollTop(t);', 1); }else if(jiequ[1] == 'MetricsTab'){ //相关文章 $('#Metrics').next('div').show(); $('#Metrics').parent('div').siblings().find('.collapse').hide(); setTimeout('t=$("#Metrics").offset().top;$(window).scrollTop(t);', 1); }else if(jiequ[1] == 'FigureTableTab'){ //相关文章 $('#tubiao').next('div').show(); $('#tubiao').parent('div').siblings().find('.collapse').hide(); setTimeout('t=$("#tubiao").offset().top;$(window).scrollTop(t);', 1); }else if(jiequ[1] == 'MaterialTab'){ //相关文章 $('#showPdf').show(); setTimeout('t=$("#showPdf").offset().top;$(window).scrollTop(t);', 1); } }); var a =""; function zhaiyao(e){ $(e).next('div').show(); if($(e).attr("id")=="Metrics"){ try { $('#DownloadDistribution').children('iframe')[0].contentWindow.highcharts(); }catch(err) {} try { $('#DownloadCountryDistribution').children('iframe')[0].contentWindow.highcharts(); }catch(err) {} try { $('#AbstractDistribution').children('iframe')[0].contentWindow.highcharts(); }catch(err) {} try { $('#AbstractCountryDistribution').children('iframe')[0].contentWindow.highcharts(); }catch(err) {} } $(e).parent('div').siblings().find('.collapse').hide(); a =$(e).offset().top; setTimeout('$(window).scrollTop(a);', 100); } $(window).scroll(function(){ var _scrollTop = $(this).scrollTop(); var _scrollHeight =$(document).height(); var c = $('#pin').offset().top; if(_scrollTop > c) { jQuery("#plane").css({position: 'fixed',top:'0px'}); } else if(_scrollTop < c){ jQuery("#plane").css({position: 'relative',top:'0px'}); } }); function xianshi(x){ if($(x).next('div').attr('style')=="display: none;"){ $(x).next('div').show(); if($(x).attr("id")=="Metrics"){ try { $('#DownloadDistribution').children('iframe')[0].contentWindow.highcharts(); }catch(err) {} try { $('#DownloadCountryDistribution').children('iframe')[0].contentWindow.highcharts(); }catch(err) {} try { $('#AbstractDistribution').children('iframe')[0].contentWindow.highcharts(); }catch(err) {} try { $('#AbstractCountryDistribution').children('iframe')[0].contentWindow.highcharts(); }catch(err) {} } $(x).parent('div').siblings().find('.collapse').hide(); a =$(x).offset().top; setTimeout('$(window).scrollTop(a);', 100); }else{ $(x).next('div').hide(); } } //补充材料 function buchongcailiao(){ $("#showPdf").stop().slideToggle(1000); $("#showPdf2").hide(); } //评审意见 $("#pinshenyijian").click(function(){ $("#showPdf2").stop().slideToggle(1000); $("#showPdf").hide(); });