-
I know this question has been slapped around the script pros before but I just can't seem to find the quick answer, and the fact that I have to watch my weight and I don't do cookies. My question is, how do you get a user that has visited your intro page to go to your main page on the next visit? I know that this involves those fattening cookies so if anyone has that recipe let me know....it's for the kids. WOOOOOOHOOOOOOO!
-
anything for the kid!
<HTML>
<HEAD>
<script language="javascript">
///////////////////////////////////////////////////////////////////////////
function makeCookie(){
// only makes the cookie if don't have one
if(document.cookie == "") {
// the cookie expires on this date
var date = new Date("may 14, 2001");
// make the cookie date readable by the browser
var da_date = date.toGMTString();
// makes a cookie named "user" and appends the cookie expiration date
var da_cookie = "user:True" + ";expires=" + da_date;
document.cookie = da_cookie;
}
else
readIt()
}
function readIt(){
var movie = window.document.movie;
movie.GotoFrame(2);
}
/////////////////////////////////////////////////////////////////////////////////
</script>
<TITLE>Movie1</TITLE>
</HEAD>
<body onLoad="makeCookie()">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH=550 HEIGHT=400 id=movie>
<PARAM NAME=movie VALUE="Movie1.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="Movie1.swf" name=movie swLiveConnect="true" quality=high bgcolor=#FFFFFF WIDTH=550 HEIGHT=400 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
</BODY>
</HTML>
-
excellent
Thanks,
The kids love it!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|