Re: Another boring cookie question

by "Rajnish Bhaskar" <9705228b(at)student.gla.ac.uk>

 Date:  Mon, 24 Apr 2000 18:44:48 +0100
 To:  hwg-basics(at)mail.hwg.org
 Cc:  bradley(at)mudmail.co.uk
 In-Reply-To: 
  todo: View Thread, Original
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

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.