Both variables queue and ads served the same purpose. Hence, the doubled
variable was removed: queue now does the deal alone.
count = 0,
slots = {},
queue = [],
count = 0,
slots = {},
queue = [],
for (i=0; i<queue.length; i++) {
id = queue[i];
if (typeof(OA_output[id]) != 'undefined' && OA_output[id] != '')
ads.push(id);
}
for (i=0; i<queue.length; i++) {
id = queue[i];
if (typeof(OA_output[id]) != 'undefined' && OA_output[id] != '')
ads.push(id);
}
document.write = document_write;
document.writeln = document_write;
document.write = document_write;
document.writeln = document_write;
- while (ads.length > 0) {
+ while (queue.length > 0) {
node = slots[id];
node.slideDown();
node = slots[id];
node.slideDown();
/** script-tag with src-URL! */
if (OA_output[id].length > 0)
/** The banner-code was not rendered completely yet! */
/** script-tag with src-URL! */
if (OA_output[id].length > 0)
/** The banner-code was not rendered completely yet! */
/** Load the script and halt all work until the script is loaded and executed... */
$.getScript(result[1], render_ads); // << jQuery.getScript() generates onload-Handler for _all_ browsers ;)
return;
/** Load the script and halt all work until the script is loaded and executed... */
$.getScript(result[1], render_ads); // << jQuery.getScript() generates onload-Handler for _all_ browsers ;)
return;
for (var i=0; i<arguments.length; i++)
output.push(arguments[i]);
for (var i=0; i<arguments.length; i++)
output.push(arguments[i]);
/**
* Re-Add the last banner-code to the working-queue, because included
* scripts had added markup via document.write(), which is not
/**
* Re-Add the last banner-code to the working-queue, because included
* scripts had added markup via document.write(), which is not
* Otherwise the added markup would be falsely rendered together with
* the markup from the following banner-code.
*/
* Otherwise the added markup would be falsely rendered together with
* the markup from the following banner-code.
*/