SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast montroze's Avatar
    Join Date
    Mar 2002
    Location
    Canada
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Not sure what this script is called, but would like one...

    A script that when someone bookmarks a page on you site, the next time they use it, they will be taken to the sites main page and from thier they can click the desired link, their are often changes made on the main page that will be missed without doing it this way. Thanks!

  2. #2
    ♪♪ ♪ ♪ ♪ ♪♪ ♪ ♪♪ Markdidj's Avatar
    Join Date
    Sep 2002
    Location
    Bournemouth, South UK
    Posts
    1,551
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    cookies are what you need to research.......

    Search for "setting.cookies"....I've not done it yet but I'm sure thats what you need. It sets variable in the clients computer, that are called upon next time they visit.
    So at the start of the javascript, you want to see if any of your cookies exist on their computer. If a certain cookie doesn't exist, then they haven't visited that page (or they have deleted their tempory internet files)
    LiveScript: Putting the "Live" Back into JavaScript
    if live output_as_javascript else output_as_html end if


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
  •