X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=jquery.openx.js;h=352d0acf6a5c3f1ef9f71d3ffd6e3031321cab62;hb=b2876e052926a1045ac059023e51919c3f29b196;hp=f5f22532d6a0d57f218426f693a1b3d25c65c278;hpb=95859482ad5fe50bd07fa8510e1168c8ed151d0c;p=openx diff --git a/jquery.openx.js b/jquery.openx.js index f5f2253..352d0ac 100644 --- a/jquery.openx.js +++ b/jquery.openx.js @@ -86,6 +86,13 @@ * charset: string Charset used, when delivering the banner-codes. * If empty, the charset is guessed by OpenX. Examples * for sensible values: "UTF-8", "ISO-8859-1". + * + * + * Other settings: + * + * selector: string A selector for selecting the DOM-elements, that + * should display ad-banners. DEFAULT: ".oa". + * See: http://api.jquery.com/category/selectors/ */ $.openx = function( options ) { @@ -121,6 +128,7 @@ 'protocol': document.location.protocol, 'delivery': '/www/delivery', 'fl': 'fl.js', + 'selector': '.oa', 'cache': true }, options @@ -158,7 +166,7 @@ */ src += '?zones='; for(name in OA_zones) { - $('.oa').each(function() { + $(settings.selector).each(function() { var node = $(this), id;