$('.re_content').show(function(){
$('.poll_mod .poll_form .poller .poller_results .result_pollerTitle:last').nextAll().remove();
});
$('.sidebar .expendable').remove();
$('.sidebar .sidebar_segment:last').addClass('flat').addClass('borderless');
function lightBoxer(sectionClass, imgClass){
$('.' + sectionClass + ' img.primary').click(function(){
var imgSrc = $(this).parent().children('.' + imgClass).attr('src');
var imgAlt = $(this).attr('alt');
var imgAbstract = $(this).parent().children('.prime_ab').text();
var imgCredit = $(this).parent().children('.prime_credit').text();
imgCredit = '' + imgCredit + ''; var overlay = '
' + imgCredit + '
' + imgAbstract + '
x close'; var rootImgHeight = $('.' + sectionClass + ' img.primary').height(); var scrollDownAmount = $(window).scrollTop(); $('body').css('position', 'relative').append(overlay); $('#lightbox_overlay').css('visibility','visible').hide().fadeIn(300, function(){ var imgWidth = $('#lightbox_overlay .light_img img').width(); var imgHeight = $('#lightbox_overlay .light_img img').height(); var boxWidth = imgWidth + 40; if(imgHeight 950) { $('#lightbox_overlay .light_img img').css('width', '955px'); var modWidth = $('#lightbox_overlay .light_img img').width(); $('#lightbox_overlay .light_img').css({ top: scrollDownAmount + 50 + 'px', width: 955, marginLeft: ((955/2) * -1) - 20, visibility: 'visible' }).hide().fadeIn(500); $('#lightbox_overlay .light_img .desc').width(955); } else { $('#lightbox_overlay .light_img').css({ top: scrollDownAmount + 50 + 'px', width: imgWidth, marginLeft: ((imgWidth/2) * -1) - 20, visibility: 'visible' }).hide().fadeIn(500); $('#lightbox_overlay .light_img .desc').width(imgWidth); } }); $('#lightbox_overlay .light_img').click(function(){ $('#lightbox_overlay').fadeOut(300, function(){ $('#lightbox_overlay').remove(); }); }); }); } lightBoxer('photo_section', 'primary'); lightBoxer('alt_photo_section', 'big'); lightBoxer('mugshots', 'big'); }); //-->Source: http://www2.nbc4i.com/news/2012/jan/05/new-years-gunfire-hits-local-church-ar-885626/
eric church sara evans lionel richie cma awards cma awards christmas tree tax cmas
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.