Learn how to use jQuery at the Blog

Sunrise Design « visit

  • Added 7 months ago
  • 38 Lines of Code shown
  • 1 Links of Interest
http://sunrisedesign.com
This is my Source Code and I don't want to show it here
View Source Code only (as overlay)
// That code snippet belongs to Sunrise Design - http://sunrisedesign.com

  //  Cufon - Font replacement settings 
  Cufon.replace('#slogan h2', {
    textShadow: '#f2f2f2 1px 1px'
  });
  Cufon.replace('.home-col-title h2');
  Cufon.replace('#ft-content h2');
  Cufon.now();

  // Match heights on homepage 2cols (disabled)
  // var h = $("#recent-work").height();
  // var newHeight = h - 929;
  // newHeight = 48 + newHeight;
  // $("#from-the-blog .home-col-header").css("padding-bottom",newHeight);

$(document).ready(function(){

  //  Setting up the main picture on the  Portfolio Detail pages 
  $('.frame-406x430 img').eq(0).css("display","inline");

  //  Load links with "rel" of "external" in new window and stay valid. 
  $('a[rel="external"]').click(function() {
    this.target = "_blank";
    return true;
  });

  // Blog Apologies
  $('.apologize').click(function(){
        $('#blog-apologies').animate({ top:"0px" }, 1000);
        setTimeout(function(){$('#blog-apologies').animate({ top:"-245px" }, 1000)}, 9000);
        return false;
  });

  $('#blog-apologies').click(function(){
        $('#blog-apologies').animate({ top:"-245px" }, 1000);
        return false;
  });

});