$(document).ready(function(){ $('.blog-front .el img').wrap('
'); $('.blog-front .el strong').wrap('
'); $('.blog-front .el .elImg img').css({'width':'166px','height':'136px'}); $('.blog-front .el .elImg').append(''); $('.blog-front .elDate').each(function(){ $(this).after('
'+$(this).parents('.contentpaneopen-front').parent().find('.contentheading-front div').html()+'
'); $(this).parents('.contentpaneopen-front').parent().find('.contentheading-front div').remove(); }); $('.topmenu li').hover( function(){ $(this).find('.level_2').show(0); }, function(){ $(this).find('.level_2').hide(0); }); $('.blog-front .el').hover( function() { $(this).find('.elImg').animate({'top':'-137px','left':'-146px'},{duration:300,queue:false}); }, function() { $(this).find('.elDate,.elName,.elDesc').css({'z-index':'0'}); $(this).find('.elImg').animate({'top':'0px','left':'0px'},{duration:500,queue:false}); } ); $('.blog-front .elDate').click(function(){ alert($(this).parents('.contentpaneopen-front').parent().find('.contentheading-front').html()); }); });