View Single Post
Old 11-24-2002, 09:05 PM   #5
Djinn Raffo
Ra
 

Join Date: March 11, 2001
Location: Ant Hill
Age: 50
Posts: 2,397
There are many ways to redirect a page.

Here is a good one:
code:
put this in between your <head></head> tags...
<script language="JavaScript">
function change(url){
document.location.replace(url);
}
</script>

<script type="text/javascript">

switch(screen.width)
//this would be used to detect screen resolution but without any
//other 'cases' it doesnt matter what the res is.. you
//get redirected..originally this script is used for that.. redirecting to
//an appropriate page based on the users screen resolution...
{

default : change('the_weburl_you_are_re-dircecting_to_goes_here.htm');

break;

}
</script>
[/QUOTE]This redirects without any intravention at all.. If you click on a webpage with this code in it.. then you go to the new url.. no exceptions..

[ 11-24-2002, 09:06 PM: Message edited by: Djinn Raffo ]
Djinn Raffo is offline