ÿØÿà JFIF ` ` ÿþxØ
| Server IP : 109.234.164.53 / Your IP : 216.73.216.110 Web Server : Apache System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64 User : computer3 ( 1098) PHP Version : 7.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/computer3/litsolide.com/cp-admin/includes/js/ |
Upload File : |
/*
* Image preview script
* powered by jQuery (http://www.jquery.com)
*
* written by Alen Grakalic (http://cssglobe.com)
*
* for more info visit http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery
*
*/
this.imagePreview = function(){
xOffset = 10;
yOffset = 30;
$("a.preview").hover(function(e){
this.t = this.title;
//this.title = "";
var c = (this.t != "") ? "<br/>" + this.t : "";
c = '';
var box_style
var style = $('#st').val();
//var tooltip = $('#tooltip').is(':checked');
var tooltip = true;
if(tooltip) {
if(style=='polaroid') {
box_style="text-align:center; background-color:white; color:black; border: 10px solid #fff; -webkit-box-shadow: 0px 0px 10px #000000; -moz-box-shadow: 0px 0px 10px #000000; box-shadow: 0px 0px 10px #000000;"
$("body").append("<p id='preview' class='polaroid_preview' style='"+box_style+"'><img src='"+ this.href +"' style='width:260px;' />"+ c +"</p>");
}
else if(style=='shadow') {
box_style="text-align:center; background-color:white; color:black; border: 2px solid #fff; -webkit-box-shadow: 0px 0px 10px #000000; -moz-box-shadow: 0px 0px 10px #000000; box-shadow: 0px 0px 10px #000000;"
$("body").append("<p id='preview' class='polaroid_preview round_10' style='"+box_style+"'><img src='"+ this.href +"' style='width:260px;' class='round_10' />"+ c +"</p>");
}
else {
box_style="text-align:center; background-color:white; color:black; border: 2px solid #fff; -webkit-box-shadow: 0px 0px 10px #000000; -moz-box-shadow: 0px 0px 10px #000000; box-shadow: 0px 0px 10px #000000;"
$("body").append("<p id='preview' class='polaroid_preview' style='"+box_style+"'><img src='"+ this.href +"' style='width:260px;' />"+ c +"</p>");
}
}
$("#preview")
.css("top",(e.pageY - xOffset) + "px")
.css("left",(e.pageX + yOffset) + "px")
.fadeIn("fast");
},
function(){
this.title = this.t;
$("#preview").remove();
});
$("a.preview").mousemove(function(e){
$("#preview")
.css("top",(e.pageY - xOffset) + "px")
.css("left",(e.pageX + yOffset) + "px");
});
};