X-Git-Url: https://juplo.de/gitweb/?p=openx;a=blobdiff_plain;f=jquery.openx.js;h=d02b228bc2726ce320c391770ea851cd8a0bfefb;hp=6001b751caa836dc74e3b5bdfaa5ef562f3ab568;hb=HEAD;hpb=fd7add46d3cef297082289c1b612bb32b0cddcb7 diff --git a/jquery.openx.js b/jquery.openx.js index 6001b75..d02b228 100644 --- a/jquery.openx.js +++ b/jquery.openx.js @@ -119,7 +119,7 @@ * recalculation of the visible ads is scheduled. * If the value is choosen to small, a recalculation * might be scheduled, while resizing is still in - * progress. DEFAULT: 200. + * progress. DEFAULT: 500. * debug: boolean Turn on/off console-debugging. DEFAULT: false. */ $.openx = function( options ) { @@ -155,7 +155,7 @@ 'min_prefix': 'min_', 'max_prefix': 'max_', 'pw_marker': 'pw', - 'resize_delay': 200, + 'resize_delay': 500, 'debug': false }, options @@ -417,7 +417,13 @@ /** Remove leading HTML-comments, because IE will stumble otherwise */ inline = inline.slice(result[0].length,inline.length); } - $.globalEval(inline); + try { + $.globalEval(inline); + } + catch(e) { + if (console.error) + console.error('Error while executing inline script-code: ' + e.message); + } insert_output(); // << The executed inline-code might have called document.write()! } else {