Jump to content

scripts


Aussiemike

Recommended Posts

Hi Guys,

Used Openx some years back and a little rusty.

I have two domains active.

When I click on one it gives me an two invocation codes.

One for the head and one where I want the banner in the html.

Then in the zone section I get another code.

Can someone simplify what is to go where at at waht time.

Sorry boys. Getting old.

Cheers

Mike

Link to comment
Share on other sites

Codes 1/ &1a are generated from the domain zone

Code 2/ is from the banner generation.

How do I differentiate?

 

Thanks again for you time Erik.

Cheers

Mike

=================

1/

THIS IS THE ONE I AM TOLD TO PLACE IN THE HEAD


<!-- Generated by OpenX 2.8.1 -->
<script type='text/javascript' src='http://example.com/adserver/www/delivery/spcjs.php?id=2'></script>

 

1a/

TOGETHER WITH THIS ONE TO BE PUT IN THE BODY


<script type='text/javascript'><!--// <![CDATA[
    /* [id2] Aussiemike domain - Intro */
    OA_show(2);
// ]]> --></script>

======================

2/

THE OTHER IS THIS ONE THAT IS GENERATED FOR A BANNER


<script type='text/javascript'><!--//<![CDATA[
   var m3_u = (location.protocol=='https:'?'https://example.com/adserver/www/delivery/ajs.php':'http://dianibeach.net/adserver/www/delivery/ajs.php');
   var m3_r = Math.floor(Math.random()*99999999999);
   if (!document.MAX_used) document.MAX_used = ',';
   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
   document.write ("?zoneid=4");
   document.write ('&amp;cb=' + m3_r);
   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
   document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
   document.write ("&amp;loc=" + escape(window.location));
   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
   if (document.context) document.write ("&context=" + escape(document.context));
   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
   document.write ("'><\/scr"+"ipt>");
//]]>--></script>

======================

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...