Zoom
'; if(currImgMyCap != ''){ mainImageContainerInnerHTML_sm += ''+currImgCredit+' | '; }else{ if(currImgCredit != ''){ mainImageContainerInnerHTML_sm += ''+currImgCredit+''; } } mainImageContainerInnerHTML_sm += ''+currImgCaption+''; $('#mainImageContainer_sm').html(mainImageContainerInnerHTML_sm); $('#topmainimagecontainer').html(mainImageContainerInnerHTML); $('#mainImageImgContainer_sm').load(function(){ $('#mainImageCaptionContainer_sm').css('width',$(this).width()+'px').css('padding-left',(318 - $(this).width())/2+'px'); $('#topmainimagecontainerload').hide(); $('#zoom-handle').css('padding-left',(318 - $(this).width())/2+'px'); $('html, body').animate({scrollTop:$('#mainImageImgContainer_sm').offset().top},'fast');}); $('#mainImageImgContainer_lg').load(function(){ $('#mainImageCaptionContainer_lg').css('width',$(this).width()+'px').css('padding-left',(653 - $(this).width())/2+'px'); $('#art-main-image-credit-container').css('padding-right',(653 - $(this).width())/2+'px'); $('#topmainimagecontainerload').hide(); $('html, body').animate({scrollTop:$('#mainImageImgContainer_lg').offset().top},'fast');}); track_art_page_relimages(); }); //=====HANDLE SMALL RELATED IMAGES=====\\ $(document.body).on('click','.smallimgnavbtn',function(){ if(total_relimgspages 4){ var slideDist = 260; if(curr_relimgpage == total_relimgspages){$('#extrapicturescontainer_sm').animate({left:'0px'}, 'fast');curr_relimgpage = 0;} else{curr_relimgpage = curr_relimgpage + 4;$('#extrapicturescontainer_sm').animate({left:'-='+slideDist+'px'}, 'fast');} }else{ var slideDist = (total_relimgspages - curr_relimgpage) * 65; if(curr_relimgpage == total_relimgspages){$('#extrapicturescontainer_sm').animate({left:'0px'}, 'fast');curr_relimgpage = 0;} else{curr_relimgpage = curr_relimgpage + (total_relimgspages - curr_relimgpage);$('#extrapicturescontainer_sm').animate({left:'-='+slideDist+'px'}, 'fast');} } } } if($(this).data('which') == 'prev'){ if(curr_relimgpage >= 4){ var slideDist = 260; if(curr_relimgpage > 0){$('#extrapicturescontainer_sm').animate({left:'+='+slideDist+'px'}, 'fast');curr_relimgpage = curr_relimgpage - 4;} }else{ var slideDist = curr_relimgpage * 65; if(curr_relimgpage > 0){$('#extrapicturescontainer_sm').animate({left:'+='+slideDist+'px'}, 'fast');curr_relimgpage = 0;} } } } track_art_page_relimages(); }); //====================================\\ $(document).ready( function() { $('#footer').css('height',$('#footer').height()+'px'); $('#article-comments').click(function(){ $("#loadComment").toggle(); $('#loadComment').load("/apps/pbcs.dll/article?AID=/20140519/NEWS/305209989/12344/NEWS/?template=ajaxLoadComment&artid=305209989"); //track_elem('/article/NEWS//305209989'); }); //newly added start $('#captcha_value').load("/apps/pbcs.dll/misc?url=/Global/misc/captcha.pbs&omniture=0&d=" + d.getTime()); $(document.body).on('click','.gotofbcom',function(){scrollToDom("#loadComment");}); $('#arttopclicks_cont').load('/section?template=topclicks'); $('#tvguide_art_cont').load('/section?template=arttvguide'); });< Prev | Next > |
---|