Closed Thread Icon

Topic awaiting preservation: always skip intro? how to? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8564" title="Pages that link to Topic awaiting preservation: always skip intro? how to? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: always skip intro? how to? <span class="small">(Page 1 of 1)</span>\

 
patric design
Bipolar (III) Inmate

From: 290 km/h, fast lane, Autobahn, Germany
Insane since: Feb 2001

posted posted 03-09-2003 15:38

Cheers!

I am in need for a "always skip intro" script with cookies. I have tried several scripts i found on the net but they all either not working well or behaving rather strangely.

What i have is: A 680x420 flash intro centered horizontally and vertically with css. A "skip intro" button under it.
What i want is: An array of buttons under the flash intro like this:

[ skip intro

quisja
Paranoid (IV) Inmate

From: everywhere
Insane since: Jun 2002

posted posted 03-09-2003 16:01

http://faq.ozoneasylum.com/FaqWiki/shownode.php?id=1048&sortby=rating
pretty much explains it all. what you'll need to do is set the cookie as "true" when a user clicks the "always skip" link. then check if the cookie is "true" as the page loads, and redirect them using location.href="", else just let the rest of the page load. it is simpler, and probably faster for the user however, to use php cookies, so that might be something you want to look into if you know php. otherwise the javascript will work just fine for most people.

kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

posted posted 03-09-2003 16:02

For the JS code needed to write and read cookies have a look at the FAQ:

:FAQ: How do I set and read cookies in JavaScript?

If you have those functions you should be able to have the "always skip intro" link set a cookie which is checked every time someone visits the page (and if it was set you'd use location.href = "foo.html" to automatically redirect to the next page).

[edit: Yeah.... what quisja said ]

[This message has been edited by kuckus (edited 03-09-2003).]

« BackwardsOnwards »

Show Forum Drop Down Menu