SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: cookie

  1. #1
    SitePoint Member
    Join Date
    May 2002
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    cookie

    Hello,

    I hope this is the right place to ask this as I am new.

    I have a newsletter pop-up alert window to use for collecting newsletter subscriptions.

    Currently it pops-up every time you click to a new page on my website.

    This is not good.

    I want to be able to set a cookie that keeps the alert box from popping up for a certain number of day's.

    I have a workaround, but that is my last resort.

    This pop-up window will collect the users default email address. So that is why I want to use it first.

    does anybody have some js code I can look at?

    I am also confused as to if I should place the cookie code in my actual html files, or if I should place it in my popup.js file.

  2. #2
    SitePoint Evangelist azizur_rahman's Avatar
    Join Date
    Nov 2001
    Location
    London, UK
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    put the code in the popup.js file and link that....


    as for the code visit: www.computerarts.co.uk they've a very nice coode on their website... ... they've implemented what you really want

    hope this helps
    Azizur Rahman
    Web Application Developer


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
  •