Jump to content
xt:Commerce Community Forum

OpenAds Banner Code einbauen


eLhabib.at

Recommended Posts

Nachdem ich leider mit JavaScript nicht gerade der Star bin, möchte ich hier mein Glück versuchen.

Ich möchte gerne Banner in meinem Shop mittles OpenX (bzw. OpenAds) ausliefern.. Wenn ich allerdings den BannerCode einbaue bekomme ich folgende Fehlermeldung:

syntax error: unrecognized tag: document.write ("&ct0=" + escape(document.MAX_ct0)); (Smarty_Compiler.class.php, line 439) in /srv/www/htdocs/el_shop/includes/classes/Smarty_2.6.14/Smarty.class.php on line 1095

Der Banner Code sieht so aus:

<script type='text/javascript'><!--//<![CDATA[
document.MAX_ct0 ='INSERT_CLICKURL_HERE';

var m3_u = (location.protocol=='https:'?'https://domain.com/oxx/www/delivery/ajs.php':'http://domain.com/oxx/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=3");
document.write ('&cb=' + m3_r);
if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used);
document.write ("&loc=" + escape(window.location));
if (document.referrer) document.write ("&referer=" + escape(document.referrer));
if (document.context) document.write ("&context=" + escape(document.context));
if ((typeof(document.MAX_ct0) != 'undefined') && (document.MAX_ct0.substring(0,4) == 'http')) {
document.write ("&ct0=" + escape(document.MAX_ct0));
}
if (document.mmm_fo) document.write ("&mmm_fo=1");
document.write ("'><\/scr"+"ipt>");
//]]>--></script>
[/HTML]

Kann mir jemand helfen woran der Fehler liegt?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...