Results 1 to 4 of 4
  1. #1
    Star Lounger
    Join Date
    Jan 2001
    Location
    PA
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts

    display 'new' image only once per view (any/all)

    I'd like to display a small "new" image on my website, but only if the visitor hasn't seen the text before. That way they'd be notified that new news has been added to the site.

    I've checked in the Java and DHTML websites with no luck. I'm assuming this would use cookies somehow, but that's all I know.

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: display 'new' image only once per view (any/all)

    I think you could read the local cookies with JavaScript when your page loads and make adjustments accordingly. But I've never had to do it, so I'm not sure what is required. Don't throw away your DHTML book, because the JavaScript code will toggle the image display and you'll need a way to refer to that object.

  3. #3
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: display 'new' image only once per view (any/all)


  4. #4
    Star Lounger
    Join Date
    Jan 2001
    Location
    PA
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: display 'new' image only once per view (any/all)

    Thank you both for the informative replies.

    However, being a non-programmer, unbale to script my way out of a wet paper bag, I'll have to pass on creatign my own script, and resort to stealing/borrowing/copying soemone else's.

    I know I've seen it somewhere before, I just can't seem to find where!

    I've lookat every single script on that page you posted Leif, and I found quite a few others that I'd like to use and incorporate into my site. So a special thanks goes out to you for that link.

Posting Permissions

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