javascript forconsole ads?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • H Randy
    Registered User
    • Oct 2001
    • 3

    #1

    javascript forconsole ads?

    where can i find the javascript code for console ads that load on exit or enter when a link is not clicked and javascript that opens up a new full size browser window if no one clicks on any links?

    I tried a few sites like javascript.com and a few others with no luck.
  • JackFoley
    Confirmed User
    • Jul 2001
    • 858

    #2
    In between your HEAD tags (make sure to put Javascript tags aroung it too):

    function popWin() {
    window.open('advert.html', '_blank', 'width=300,height=300');
    }

    Then in your BODY tag:

    onload="javascript:popWin();"

    OR

    body onUnload="javascript :popWin();"

    Hard to explain on this board because it doesn't handle html tag very well.

    ------------------
    I'm too lazy to run this shit.

    [This message has been edited by JackFoley (edited 10-05-2001).]

    [This message has been edited by JackFoley (edited 10-05-2001).]
    SUBMIT | TRADE | CONTACT

    Comment

    Working...