I posted this earlier, wondering if someone would be nice enough to write the could for me
Original question:
I'm designing a webpage, and need some script help ...
My page has a starting page (index.html) with an intro movie, I want to have it so that the first time visitors come to the page, they just go normally to index.html, but after the first time, I want them to skip past that and go straight to the actual main page for the site (index2.html). Unfortunately, I have no idea how to do this.
scruples
And the reply that explained what I need:
You should be able to set a cookie with JavaScript that will remain in memory for a specified period of time. This script should first check if the cookie is already present and if it is not, then set it and let the user view the movie.
If the cookie has already been set then the script should send the user to the next page immediately.
This script should consist of top-level code written in the document header so that it executes before the rest of the document is loaded. Users may notice an extra flicker as the page "redirects", but the effect should be negligible.
I don't have time to write the code for this now. If I get a spare moment I may tackle it later. Otherwise maybe somebody else will give it a shot.
-Petey
Anyone who has time, I would greatly appreciate the code ...
Thanks,
scruples
Original question:
I'm designing a webpage, and need some script help ...
My page has a starting page (index.html) with an intro movie, I want to have it so that the first time visitors come to the page, they just go normally to index.html, but after the first time, I want them to skip past that and go straight to the actual main page for the site (index2.html). Unfortunately, I have no idea how to do this.
scruples
And the reply that explained what I need:
You should be able to set a cookie with JavaScript that will remain in memory for a specified period of time. This script should first check if the cookie is already present and if it is not, then set it and let the user view the movie.
If the cookie has already been set then the script should send the user to the next page immediately.
This script should consist of top-level code written in the document header so that it executes before the rest of the document is loaded. Users may notice an extra flicker as the page "redirects", but the effect should be negligible.
I don't have time to write the code for this now. If I get a spare moment I may tackle it later. Otherwise maybe somebody else will give it a shot.
-Petey
Anyone who has time, I would greatly appreciate the code ...
Thanks,
scruples