The selector for picking the DOM-elements is now configurable
[openx] / jquery.openx.js
index f5f2253..352d0ac 100644 (file)
    * 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 ) {
 
         'protocol': document.location.protocol,
         'delivery': '/www/delivery',
         'fl': 'fl.js',
+        'selector': '.oa',
         'cache': true
       },
       options
      */
     src += '?zones=';
     for(name in OA_zones) {
-      $('.oa').each(function() {
+      $(settings.selector).each(function() {
         var
         node = $(this),
         id;