The jQuery plugin bring the library to your CMS. Then you need to put some code in a story or a static page.
Text Formatted Code
<script>
/*
* Url preview script
* powered by jQuery
*
* written by Alen Grakalic
*
*
*/
this.screenshotPreview = function(){
/* CONFIG */
xOffset = 10;
yOffset = 30;
// these 2 variable determine popup's distance from the cursor
// you might want to adjust to get the right result
/* END CONFIG */
jQuery("a.screenshot").hover(function(e){
this.t = this.title;
this.title = "";
var c = (this.t != "") ? "<br/>" + this.t : "";
jQuery("body").append("<p id='screenshot'><img src='"+ this.rel +"' alt='url preview' />"+ c +"</p>");
jQuery("#screenshot")
.css("top",(e.pageY - xOffset) + "px")
.css("left",(e.pageX + yOffset) + "px")
.fadeIn("fast");
},
function(){
this.title = this.t;
jQuery("#screenshot").remove();
});
jQuery("a.screenshot").mousemove(function(e){
jQuery("#screenshot")
.css("top",(e.pageY - xOffset) + "px")
.css("left",(e.pageX + yOffset) + "px");
});
};
// starting the script on page load
jQuery(document).ready(function(){
screenshotPreview();
});
</script>
<style>
#screenshot{
position:absolute;
border:1px solid #ccc;
background:#333;
padding:5px;
display:none;
color:#fff;
}
</style>
The <a href="http://www.geeklog.net/" class="screenshot" rel="http://www.geeklog.net/layout/professional/images/logo.png">Geeklog site</a> is online.</p>
You can also hack the plugin to add what you need to every page and you can create a [screenshot] autotag.