1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

This JavaScript code does not want to work in my WP blog

Discussion in 'WordPress' started by Nourddine Khiti, Feb 1, 2017.

  1. #1
    Hello guys, when I added this code in my Wordpress blog it doesn't wanna work:

    <div id="SC_TBlock_256959" class="SC_TBlock">loading...</div>

    <script type="text/javascript">var SC_CId = "256959",SC_Domain="n.pc3ads.com";SC_Start_256959=(new Date).getTime();</script>
    <script type="text/javascript" src="//st-n.pc3ads.com/js/adv_out.js"></script>

    It does not show the widget, it shows only loading ... as the following:

    [​IMG]
    I tested the code in other websites, it works fine. BTW I use SSL Certificate in my blog.
     
    Nourddine Khiti, Feb 1, 2017 IP
  2. qwikad.com

    qwikad.com Illustrious Member Affiliate Manager

    Messages:
    7,151
    Likes Received:
    1,656
    Best Answers:
    29
    Trophy Points:
    475
    #2
    Something in your page is interfering with the code. Seems to be running fine in the fiddle:

    https://jsfiddle.net/0c62e6gu/

    Try to put it at the very top of the page right after <body> see if it shows. If it does then, yes, there's some other js code in the page that makes it impossible for the widget to work.

     
    qwikad.com, Feb 1, 2017 IP
  3. Nourddine Khiti

    Nourddine Khiti Active Member

    Messages:
    170
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #3
    Yeah I know, by the way this code should be under content because it is a sponsored recommended articles. I really do not know what to do.
     
    Nourddine Khiti, Feb 1, 2017 IP
  4. Furquan Ahmed

    Furquan Ahmed Well-Known Member

    Messages:
    819
    Likes Received:
    76
    Best Answers:
    1
    Trophy Points:
    135
    #4
    Why not to use ads plugin, which simply put this into your content.
     
    Furquan Ahmed, Feb 1, 2017 IP
  5. Nourddine Khiti

    Nourddine Khiti Active Member

    Messages:
    170
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #5
    That's what I did, and it doesn't work here is the example:

    [​IMG]
     
    Nourddine Khiti, Feb 1, 2017 IP
  6. Nourddine Khiti

    Nourddine Khiti Active Member

    Messages:
    170
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #6
    Help !!
     
    Nourddine Khiti, Feb 5, 2017 IP