Closed Thread Icon

Topic awaiting preservation: Timed Refresh/Redirect (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=9043" title="Pages that link to Topic awaiting preservation: Timed Refresh/Redirect (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Timed Refresh/Redirect <span class="small">(Page 1 of 1)</span>\

 
crapo_man
Obsessive-Compulsive (I) Inmate

From:
Insane since: Mar 2004

posted posted 03-14-2004 20:11

Ummm.... I need a timed refresh or redirect script for my site, and i need it to either refresh after 15 minutes or redirect it to the site that is exactly the same after 15 minutes, and i need them to keep rotating/refreshing. I was wondering if anyone could give me the script for it. Thx

What's a signature.............................

norm
Paranoid (IV) Inmate

From: [s]underwater[/s] under-snow in Juneau
Insane since: Sep 2002

posted posted 03-14-2004 22:20

crapo_man:

The Asylum is primarily a forum for people who are interested/involved in web-development, as opposed to a forum for those who want others to do work for them. Have you noticed there is no 'Please write my code for me' section to the Asylum?

People here are really good about pointing you in the right direction to solve a problem you have been working on, looking over code for flaws, and are great for giving feedback on the feasability of new ideas. I have gotten lots of help here myself, and have tried to do what I can for others in return.

It's a safe bet that you will have a hard time getting others to help you here if there is no evidence that you are actually putting in some effort yourself. This is a fantastic community with a lot of helpful, intelligent and talented members. It is a great place to hangout and improve your skill in just about anything web related. It's just not the kind of place where showing up and saying 'please just give me something' gets very far....

That said, you may want to open up your Javascript book and look into both 'setTimeout()' and 'window.location'. Try to work out what you want done. If it works, let us know how you did it (maybe that will help someone else). If your code falls flat, post it here and we can all try to see how to fix it.

BTW- welcome to the Asylum.

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 03-14-2004 23:00

A simple meta refresh should be far enough.

crapo_man
Obsessive-Compulsive (I) Inmate

From:
Insane since: Mar 2004

posted posted 03-14-2004 23:46

lol sorry bout that, havent explored this site enough yet. Well i think i finally found what i needed, its just that i basically dont know anything about web development, im just starting out. It's just that i've tried using different redirect tags, but none of them seemed to work... they would redirect except not in 15 minutes but in about 2.5 hours... but i finally found a script that works, i am currently testing it out. And sorry about my last post, but i just started here so i didnt quite check out the whole site yet. So anyways thanks. I shall now take my leave and continue the quest to basic html.....

What's a signature.............................

bug-eyes
Neurotic (0) Inmate
Newly admitted

From: Orlando, Florida, USA
Insane since: Mar 2004

posted posted 03-25-2004 20:38

This should work:

CODE:
_____________________________________________

<script language="javascript">
function reload_after_15min()
{
var 15_min = seTimeout("window.location.reload();",15000000);
}
</script>
<body onload="return reload_after_15min()">
______________________________________________

That will do it once, but to repeat this will be a bit more complex.

Visit<A HREF="http://www.w3schools.com" TARGET=_blank>

« BackwardsOnwards »

Show Forum Drop Down Menu