How do I make my wordpress post appear in a mouse hover preview?
Posted
by
Dan
on Stack Overflow
See other posts from Stack Overflow
or by Dan
Published on 2012-09-07T21:25:11Z
Indexed on
2012/09/07
21:38 UTC
Read the original article
Hit count: 207
Mouse hover previews usually only show title and image. Instead, I want the entire wordpress post to show. The code that calls the preview is this:
adTitle = jQuery(this).find('img').attr('alt');
jQuery('body').append("<div id='preview'><a href='"+ this.href +"' class='colorbox-thumb'><img src='"+ this.href +"' alt='' /></a><p>"+ adTitle +"</p></div>");
jQuery('#preview')
.fadeIn('fast')
I want to insert a wordpress post instead.
I have tried to insert the php code after append("
© Stack Overflow or respective owner