/[drupal]/contributions/modules/openads/openads.js
ViewVC logotype

Contents of /contributions/modules/openads/openads.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Fri Mar 21 05:31:49 2008 UTC (20 months, 1 week ago) by jaydub
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-5
File MIME type: text/javascript
changing OpenX javascript file from mmm.js to openads.js for naming consistency. The new openads.js updates the Javascript function formerly used in mmm.js to match that which is output by OpenX when choosing the javascript invocation method for a zone.
1 var m3_up=location.protocol=='https:'?'https://':'http://';
2 var m3_url=m3_up=='https:'?az_us:az_u;
3 var m3_u=m3_up + m3_url + az_js;
4 var m3_r=Math.floor(Math.random()*99999999999);
5 if (!document.MAX_used) document.MAX_used = ',';
6
7 function az_adjs(z, n) {
8 var az="<scr"+"ipt type='text/javascript' ";
9 az+="src='"+m3_u+"?zoneid="+z+"&amp;cb="+m3_r;
10 if (!document.MAX_used != ',') az+="&amp;exclude="+document.MAX_used;
11 if (document.referrer) az+="&amp;referer="+escape(document.referer);
12 if (document.content) az+="&context="+escape(document.context);
13 if (document.mmm_fo) az+="&amp;mmm_fo=1";
14 az+="'></scr"+"ipt>";
15 document.write(az);
16 }

  ViewVC Help
Powered by ViewVC 1.1.2