Screen goes black after pasting Ad script

Home Forums AdRotate for WordPress Adverts and Banners Screen goes black after pasting Ad script

This topic contains 4 replies, has 2 voices, and was last updated by  medicostv 2 months ago.

  • #63556

    medicostv
    Badges:

    Hello, we have an interesting issue…

    We have new ad network for our site, and as soon as i paste the code in the new ad screen, my session goes blank; like all white. I have to use the backspace button… can you help me find the issue? Here is the script:

    ( function() {
        if (window.CHITIKA === undefined) { window.CHITIKA = { 'units' : [] }; };
        var unit = {"calltype":"async[2]","publisher":"medicostv","width":728,"height":90,"sid":"Chitika Default"};
        var placement_id = window.CHITIKA.units.length;
        window.CHITIKA.units.push(unit);
        document.write('');
    }());
    
    <a href="//cdn.chitika.net/getads.js">//cdn.chitika.net/getads.js</a>
    #63558

    medicostv
    Badges:
    #63626

    Arnan
    Badges:

    Disable live previews in Settings.
    The page goes blank because your advert uses document.write.

    If you prefer to use the live preview – You can also try to rewrite the advert so it doesn’t use the document.write function. In many cases that’s possible if you know Javascript without breaking rules of your ad provider.

    #63628

    Arnan
    Badges:

    Moved to adverts and banners forum. Not a bug.

    #63636

    medicostv
    Badges:

    Awesome. It Works 200%

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Screen goes black after pasting Ad script’ is closed to new replies.