Support » Fixing WordPress » Adding Javascript ad code from ad network

  • Please help! I have tried everything to add a javascript ad code to my header and side bar and nothing is working. I put the code in the header.php and sidebar.php files and when I go to the site all that shows up in its place is “‘)” I tested the code and it works fine in the preview of the Javascript/HTML widget, but when I save, it doesn’t appear on my website.

    Please help me!

    The ad code [header]

    <!– begin 160×600 Top Sports and a Latte –>
    <script language=”JavaScript” type=”text/javascript”>
    window.dctile = Number(window.dctile) + 1 || 1;
    window.dc_ord = Number(window.dc_ord) || Math.floor(Math.random() * 1E10);
    if (dctile==1) {var vdcopt = ‘ist’;} else {vdcopt = ”;}
    if (17>dctile) document.write(‘<script type=”text/javascript” src=”;chan1=gensports;rating=pg;dcopt=’ + vdcopt + ‘;yb=ad;s1=;s2=;tile=’ + dctile + ‘;sz=160×600;ord=’ + dc_ord + ‘?”><\/script>\n’);
    <!– End ad tag –>

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Adding Javascript ad code from ad network’ is closed to new replies.