A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Redirect to page already visited

  1. #1
    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!


  2. #2
    Senior Member
    Join Date
    Aug 2000
    Posts
    1,317
    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>

  3. #3

    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center