|
|||
|
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: HTML-Code:
<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> |
|
||||
|
wenn man javascript im template verwendet, muss dies innerhalb von literal tags getan werden.
__________________
xt:Commerce Helpdesk xt:Commerce Blog xt:Commerce Warenwirtschaft ### ![]() Offene Stellen bei xt:Commerce! xt:Commerce stellt ein ### |
![]() |
| Lesezeichen |
| Stichworte |
| banner, code, einbauen, openads |
| Themen-Optionen | |
| Ansicht | |
|
|
Ähnliche Themen
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Etracker Code einbauen? | Modenio | Allgemeine Diskussionen | 2 | 27.03.2011 12:44 |
| wo code einbauen | jaelle50 | Installation und Konfiguration | 2 | 21.12.2006 19:02 |