DJR
31-10-2002, 02:56/02:56AM
I always use the script below for detection the resolution of the visitors screen and redirect the visitor to the webpage what's optimized for his screensize. What does Google do... Does he find out this is spam??? Would Google follow the links index1.php en index2.php? Or do I have to use the tag noscript and google wil index the page as normal?
I'm a little bit scared to use this script, but in my opinion, I had no better scripts for detection en redirection...
I hope you can help and explain something...
Dirk-Jan
<HTML>
<title></title>
<!-- metatags -->
<HEAD>
<!-- this script is watching the resolution of the visitor -->
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function redirectPage() {
var url800x600 = "index1.php";
var url1024x768 = "index2.php";
else if ((screen.width == 800) && (screen.height == 600))
window.location.href= url800x600;
else if ((screen.width == 1024) && (screen.height == 768))
window.location.href= url1024x768;
}
// End -->
</script>
</HEAD>
<BODY onLoad="redirectPage()">
</BODY>
</HTML>
I'm a little bit scared to use this script, but in my opinion, I had no better scripts for detection en redirection...
I hope you can help and explain something...
Dirk-Jan
<HTML>
<title></title>
<!-- metatags -->
<HEAD>
<!-- this script is watching the resolution of the visitor -->
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function redirectPage() {
var url800x600 = "index1.php";
var url1024x768 = "index2.php";
else if ((screen.width == 800) && (screen.height == 600))
window.location.href= url800x600;
else if ((screen.width == 1024) && (screen.height == 768))
window.location.href= url1024x768;
}
// End -->
</script>
</HEAD>
<BODY onLoad="redirectPage()">
</BODY>
</HTML>