Click to See Complete Forum and Search --> : Page in place of page
hotcar1012
10-13-2004, 11:59 AM
Hey i really need your help I have a message board on another server, and i want to link that to my free website. What html could i use so when the users click on the link to the page that it automatically opens up the message board, inside of the free websites already made page or inplace of
please help
BonRouge
10-13-2004, 12:17 PM
Is there any reason why you can't just link to the message board?
David Harrison
10-13-2004, 12:53 PM
I'm not sure I understand you very well. Can you give us links to your page(s) and try and describe your problem in more detail?
NogDog
10-13-2004, 01:16 PM
Possible we're talking about an automatic redirect? You can do this with JavaScript on the client side. On the server side, you could do it with PHP using the header("Location: http://www.yoursite.com/"); command (must be done before any output sent to the browser).
hotcar1012
10-13-2004, 02:01 PM
redirect yes that is exactly it would anyone be able to walk me though how to do that, newbies don't know to much
the website url is sugarcult.fanspace.com
it is the message board page that i want redirected to a pphp message board
NogDog
10-13-2004, 02:24 PM
Try something like this for the page that you want to automatically redirect to what we'll call the "test.html" page for this example:
<html>
<head>
<title>Redirect to Test Page</title>
<script launguage="JavaScript">
location.replace("http://www.yoursite.com/test.html");
</script>
</head>
<body>
<p>If you are not automatically re-directed in a few seconds, then click on the link below:<p>
<p><a href="http:/www.yoursite.com/test.html">Test Page</a></p>
</body>
</html>
hotcar1012
10-13-2004, 02:34 PM
yes that does work thank you, my only other question is, it comes up with the old site for about 5 seconds before it directs is there any way to get rid of this, or directly link to the page
NogDog
10-13-2004, 02:48 PM
You could try using this pause function (http://www.sean.co.uk/a/webdesign/javascriptdelay.shtm) I found on the 'net.
<html>
<head>
<title>Redirect to Test Page</title>
<script launguage="JavaScript">
function pausecomp(Amount)
{
d = new Date() //today's date
while (1)
{
mill=new Date() // Date Now
diff = mill-d //difference in milliseconds
if( diff > Amount ) {break;}
}
}
location.replace("http://www.yoursite.com/test.html");
pausecomp(10000);
</script>
</head>
<body>
<p>If you are not automatically re-directed in a few seconds, then click on the link below:</p>
<p><a href="http:/www.yoursite.com/test.html">Test Page</a></p>
</body>
</html>