http://thefinishedbox.com/files/freebies/alertbox/index.html
Chodzi mi o to, że skrypt z pytaniem ładuje się po kliknięciu, a chciałbym, żeby ładował się automatycznie - żeby ominąć przyciskanie przycisku.
Jak to zrobić?
index.html
alert.html:
alert.js:
(function($){ $.fn.extend({ alertBox: function(settings) { var defaults = { href: null }; var settings = $.extend(defaults, settings); return this.each(function() { var s = settings; var load = 'alert.php'; $(this).click(function(e) { . . .