Make interstital primary and content secondary when loading

Discussion in 'Programming' started by Andy$$$, Mar 2, 2008.

  1. #1
    Hello!

    I have a problem, I have a website with a lot of content on each page (many images that are being loaded), when a visitor arrives to the site for the first time an interstitial ad is being shown but the problem is that all my pages content is being loaded in the background at the same time as the ad page is loading which is a huge problem because in the frame on top where it says SKIP AD in the right corner is visible right away and then it can take a long time before anything actually shows under the frame which makes most visitors just click the SKIP AD button and go back to the content before even seeing the ad.

    I need a solution to make it work like this:
    Visitor arrives to my page

    A script checks if the user has a cookie which indicates if he has seen a
    interstitial the past 24h or not. If not then the content will PAUSE and the interstitial ad is being shown

    After that when a customer clicks the SKIP AD to go to the content the content starts loading.

    Or something like that, perhaps there is even better solutions out there? :)

    Anyone that can help or point me into the right direction?

    Thanks in advanced.
     
    Andy$$$, Mar 2, 2008 IP
  2. Andy$$$

    Andy$$$ Peon

    Messages:
    205
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Maybe this was the wrong section after all, how do I remove it?
     
    Andy$$$, Mar 2, 2008 IP
  3. Cybernaut

    Cybernaut Peon

    Messages:
    408
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hide everything (content div and skip link using css) except ad. Use javascript to check the cookie at intervals (setInterval)) while page is loading. When cookie is found (document.cookie, I suppose that ad page will set some cookie?) or page finished loading (window.onload) or a certain time has elapsed (1 min?) , show the skip ad link and content (make them visible).
     
    Cybernaut, Mar 2, 2008 IP