PDA

View Full Version : Re-Direct?



Fool
10-04-2001, 10:23 AM
I had it before, but I have forgotten the HTML for it. I'm trying to set my index.htm page as a re-direct to my forums. Does anyone know the HTML for that?

Fordy
10-04-2001, 01:37 PM
Try this...


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script>
<!-- START HIDE

function jmp(){
document.location.href="http://www.cprogramming.com"
}
// STOP HIDE -->
</script>
</head>
<body onload="setTimeout('jmp()',2500)">
</body>
</html>



This gives a 2.5 second wait, but you can alter it

WayTooHigh
10-04-2001, 02:14 PM
or this...

<html>

<head>
<META HTTP-EQUIV="refresh" CONTENT="1; url=http://www.cprogramming.com">
</head>

<body></body>

</html>
change the value of "CONTENT" to "5" to wait 5 seconds... change it 9 to wait 9 seconds and so on...

Fordy
10-04-2001, 02:18 PM
LOL this shows the difference between someone who knows thier code and someone like me who just uses DreamWeaver

WayTooHigh
10-04-2001, 02:23 PM
Originally posted by Fordy
LOL this shows the difference between someone who knows thier code and someone like me who just uses DreamWeaver
what do you mean? i've never used DreamWeaver before.

-KEN-
10-04-2001, 03:00 PM
he's talking about himself...maybe you are way too high right now. :)

Fordy
10-04-2001, 04:27 PM
>>what do you mean? i've never used DreamWeaver before.

Yeah.. I wasn’t having a go at you. On the contrary, I was putting myself down

WayTooHigh
10-04-2001, 06:08 PM
Originally posted by Fordy
>>what do you mean? i've never used DreamWeaver before.

Yeah.. I wasn’t having a go at you. On the contrary, I was putting myself down oh sorry. :D