RE: Another boring cookie question

by "David L. Semans" <dsemans(at)linkny.com>

 Date:  Wed, 26 Apr 2000 04:33:14 -0400
 To:  <hwg-basics(at)mail.hwg.org>
 In-Reply-To:  localhost
  todo: View Thread, Original
Raj.
I would be interested in your js even if it doesn't exactly fit the needs of
Ben.  Others may also.  Thanks for your help.

David L. Semans
> -----Original Message-----
> From: owner-hwg-basics(at)hwg.org [mailto:owner-hwg-basics(at)hwg.org]On
> Behalf Of Rajnish Bhaskar
> Sent: Monday, April 24, 2000 1:45 PM
> To: hwg-basics(at)mail.hwg.org
> Cc: bradley(at)mudmail.co.uk
> Subject: Re: Another boring cookie question
>
>
> Hi Ben,
>
> > I have a Flash4 intro screen, when a user goes to that page, a cookie is
> > saved to their computer. Next time they go there, they are
> moved straight to
> > the main bit of the site if a cookie is detected, if not, then
> they have to
> > sit through my boring intro again.
>
> What you could do is to have a Javascript function that is called on the
> onLoad event of the body tag that first checks to see if your cookie
> exists and if so, then it redirects to another page, otherwise it
> just sets
> the cookie.
>
> Email me and I'll send you the code for setting and retrieving
> cookies that
> I use, if you want.
>
> Actually, I'm not *entirely* sure that this will work.  It
> depends on when
> the onLoad event gets called (I'm not sure, but it may get called *after*
> the page completely loads), but I'm sure that some other boffin
> on the list
> can answer that :o).
>
> Raj.
> ------------------------------------------------------------------
> __        __
> |   |	|   |   Rajnish Bhaskar, University of Glasgow
> |_ / 	|_ /   E-Mail: rajy(at)i.am
> |   \	|   \   Home Page: http://i.am/rajy
> |    \	|__/
> Arms alone are not enough to keep the peace
> it must be kept by men.
> 	 -- John Fitzgerald Kennedy, 1962
>

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA