(function($){ jQApri = {}; //////////////////////////////////////////////////////////////////////////////// //========== APERTURA FINESTRE ================================================= //////////////////////////////////////////////////////////////////////////////// jQApri.Apri = { build : function(options) { var _options = $.extend({ message : "Attenzione: questo link si apre in una nuova finestra", toolbar : "no", location : "no", directories : "no", status : "no", menuBar : "no", scrollbars : "yes", resizable : "yes", width : 400, height : 300, top : false, left : false, screenX : false, screenY : false }, options); return this.each(function(nr){ var _prop = ''; for (_option in _options) if (_options[_option]) _prop += _option + "=" + _options[_option] + ","; var that = this; var _j = $(that); var _t = _j.attr("title") ? _j.attr("title") : _j.text(); _j.attr("title", _t + " - " + _options.message); var _href = _j.attr("href"); _j.click(function () {window.open(_href, '_blank', _prop); return false;}); }); } }; $.fn.apri = jQApri.Apri.build; })(jQuery); (function($){ jQAprib = {}; //////////////////////////////////////////////////////////////////////////////// //========== APERTURA FINESTRE ================================================= //////////////////////////////////////////////////////////////////////////////// jQAprib.Apri = { build : function(options) { var _options = $.extend({ message : "Attenzione: questo link si apre in una nuova finestra", toolbar : "no", location : "no", directories : "no", status : "no", menuBar : "no", scrollbars : "yes", resizable : "yes", width : 400, height : 300, top : false, left : false, screenX : false, screenY : false }, options); return this.each(function(nr){ var _prop = ''; for (_option in _options) if (_options[_option]) _prop += _option + "=" + _options[_option] + ","; for (var countEle=0;countEle