ieHover = function() { var ieEls = document.getElementById("page").getElementsByTagName("LI"); for (var i=0; i
'); jQuery('.mainCols .colInner .colInner').masonry(); jQuery('#commentBox .reply').click(function(event){ event.preventDefault(); var string = '@' + jQuery(this).siblings('#commentBox .info').find('.author').text() + ':'; var currentValue = jQuery('#comment').val(); jQuery('#comment').val(currentValue + string + '\n').focus(); }); var exp = /^@/; var exphref = /^#comment-/; jQuery('#commentBox .content p a').each(function(){ if (jQuery(this).text().match(exp) && jQuery(this).attr('href').match(exphref)) { jQuery(this).addClass('replyTo'); } }); var offset = jQuery('#commentBox').offset(); jQuery('.replyTo').hover( function(){ jQuery(jQuery(this).attr('href')).clone().hide().attr('id','').insertAfter(jQuery(this).parents('li')).addClass('commentTip').fadeIn('medium'); }, function(){ jQuery('.commentTip').fadeOut('fast',function(){ jQuery(this).remove(); }); } ).mousemove(function(e){ jQuery('.commentTip').css({'left' : (e.pageX - offset.left + 10) , 'top' : (e.pageY - offset.top + 5)}); }); });