(function($){
$(window).load(function(){
if(jQuery.isFunction(jQuery.fn.prettyPhoto)) {
$.prettyPhoto.open(
"images/ad1.jpg", // Image to be opened
"title", // Title of the pop-up
"desc." // The description
);
setTimeout(function() {
$.prettyPhoto.close();
}, 10000); // autoclose after 10 seconds
} else {
console.log("PrettyPhoto is not defined."); // log this message
}
});
})(jQuery);
I need some assistance with this. I am trying to make an image (ad1.jpg) link url to be opened in a new tab. How would I do this? I have tried many options to make this work. I might be placing the code wrong but I have tried window.open, and many more options. Any help is greatly appreciated. Thanks!