This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-06-13 17:47:55

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

HTML question

how can I make a web page wait a couple of seconds then go to another page?


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#2 2008-06-13 17:49:01

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: HTML question

Well, I'm really not good at this since I'm teaching myself. And isn't it a little off-topic?


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#3 2008-06-13 17:52:43

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: HTML question

<META HTTP-EQUIV="Refresh"
      CONTENT="5; URL=html-redirect.html">

Try searching on google next time.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#4 2008-06-13 21:42:12

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: HTML question

Code:

<script type="text/javascript"><!--
setTimeout('Redirect()',4000);
function Redirect()
{
 location.href = 'blahblahblah.html';
}
// --></script>

That script will wait four seconds then redirect you to 'blahblahblah.html', a page which I completely made up myself  smile

the setTimeout('Redirect()',4000) means to wait 4000 milliseconds (aka four seconds) and then do the redirect function.

The redirect function then sets the URL to '../blahblahblah.html'.

Change it to meet your needs.

Offline

 

#5 2008-06-14 08:01:41

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: HTML question

archmage wrote:

<META HTTP-EQUIV="Refresh"
      CONTENT="5; URL=html-redirect.html">

Try searching on google next time.

did. didn't help


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#6 2008-06-14 11:54:52

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: HTML question

midnightleopard wrote:

archmage wrote:

<META HTTP-EQUIV="Refresh"
      CONTENT="5; URL=html-redirect.html">

Try searching on google next time.

did. didn't help

Did my way work?

Offline

 

Board footer