X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=jquery.openx.js;h=a2343bb139ec9f6467ef4696f32a3b5318fb80ea;hb=b6ffa68d8d04fa594ea7b11f5e38fea2e89cb991;hp=3f3669f0a35ec125d6fa41bf42a9d39b99c8d4cb;hpb=000ac4f4f9152d9ce789246097279cbd4d5c18b4;p=openx diff --git a/jquery.openx.js b/jquery.openx.js index 3f3669f..a2343bb 100644 --- a/jquery.openx.js +++ b/jquery.openx.js @@ -29,6 +29,8 @@ count = 0, slots = {}, + min_width = {}, + max_width = {}, queue = [], output = []; @@ -92,11 +94,13 @@ * selector: string A selector for selecting the DOM-elements, that * should display ad-banners. DEFAULT: ".oa". * See: http://api.jquery.com/category/selectors/ + * min_prefix: string Prefix for the encoding of the minmal width as + * CSS-classname. DEFAULT: "min_". + * max_prefix: string Prefix for the encoding of the maximal width as + * CSS-classname. DEFAULT: "max_". */ $.openx = function( options ) { - var name, src, errors = [], i; - if (domain) { if (console.error) { console.error('jQuery.openx was already initialized!'); @@ -111,12 +115,9 @@ _options = options; - if (!options.server) - errors.push('Required option "server" is missing!'); - if (errors.length > 0) { + if (!options.server) { if (console.error) { - for (i=0; i