SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Zealot litmania_com's Avatar
    Join Date
    Feb 2001
    Location
    London
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm still in a bit of a quandry.

    I have a pop-up script which only runs every week, based on cookies.

    See the source at:
    http://www.crosswinds.net/~rfrost/links.html

    However, I would like the pop-up to appear after about ten seconds. Otherwise, it just obscures my main pages.

    I've tried adding some timer code that somebody else provided, but it didn't work.

    Could any Javascript expert out there provide the exact code I need to add to release the pop-up after about ten seconds?

    Thank-you
    Nadeem Azam
    Litmania.com Inc.

    Free promotion - check out this 1:1 banner exchange
    Dot com domains - the world's most prestigious domain names for sale

  2. #2
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Change 600000 to 10000.

  3. #3
    SitePoint Zealot litmania_com's Avatar
    Join Date
    Feb 2001
    Location
    London
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank-you!

    I've done what you specified...

    Could someone quickly test to see if the pop-up appears after about ten seconds (I can't do it because of the cookies)?

    Thank you very much.
    Nadeem Azam
    Litmania.com Inc.

    Free promotion - check out this 1:1 banner exchange
    Dot com domains - the world's most prestigious domain names for sale

  4. #4
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You also need to change onUnload to onLoad

  5. #5
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And if your cookie is still set, load the page, enter in javascript:DeleteCookie("count"); into the href and run that, then reload the page.

  6. #6
    SitePoint Zealot litmania_com's Avatar
    Join Date
    Feb 2001
    Location
    London
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thanks

    Thank you for your help. That last tip sounds useful, but I don't understand it. Sorry, I'm not a net-wizard like you guys :)

    Where do I enter the javascript:DeleteCookie("count"); ?

    Thanks.
    Nadeem Azam
    Litmania.com Inc.

    Free promotion - check out this 1:1 banner exchange
    Dot com domains - the world's most prestigious domain names for sale


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •