Javascript Delay (Teaser) Script Problem!

Discussion in 'JavaScript' started by netnuta, Jul 31, 2010.

  1. #1
    Hi there,

    I have a Wordpress self hosted site http://www.watchhuge.com which uses a content gateway on the single post page.

    My problem is, I want to delay the gateway from opening by a predefined time so as the visitor is able to view the content on this page for that predefined time before the gateway lock activates.

    Can this be done by a js script with the gateway JavaScript embedded in the code?:confused:

    Here is the original gateway code:

    <!-- Interstitial :: Start -->
    <script type="text/javascript" src="http://interstitial.powered-by.securewebsiteaccess.com/fd2fed27b5ce840faea85789afd984ba38de"></script>
    <!-- Interstitial :: End -->

    I am prepared to pay someone to accomplish this! :p

    Cheers
    Netnuta
     
    netnuta, Jul 31, 2010 IP
  2. unigogo

    unigogo Peon

    Messages:
    286
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try this code (put the block before the body tag),

     
    unigogo, Jul 31, 2010 IP
  3. netnuta

    netnuta Active Member

    Messages:
    123
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    Hi, many thank's for your reply and suggestion!

    I put your script on the single post page, the delay works but the gateway will not load.

    Cheers
     
    netnuta, Jul 31, 2010 IP
  4. unigogo

    unigogo Peon

    Messages:
    286
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It depends on what securewebsiteaccess.com's script checks. Maybe you could have another trial to put the block where it used to be, e.g. middle of the page? To do this, change

    document.getElementsByTagName("head")[0].appendChild(rf);

    to sometag.appendChild(rf); or use insertBefore
     
    unigogo, Jul 31, 2010 IP
  5. netnuta

    netnuta Active Member

    Messages:
    123
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #5
    I still can't get the gateway to load!
     
    netnuta, Jul 31, 2010 IP
  6. netnuta

    netnuta Active Member

    Messages:
    123
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #6
    Can anyone help with this problem!

    Thank's
     
    netnuta, Aug 1, 2010 IP