PDA

View Full Version : scared to use a script for detection en redirection


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>

french dread
31-10-2002, 04:06/04:06AM
Search engines ignore scripts, so you should not worry about that it won't be seen as spam. But in a <noscript> section you should put a link so search engines can index the redirected pages

DJR
31-10-2002, 04:14/04:14AM
That makes me happy!

But is it dangerous to make use off the <noscript> (where I will place a anchor too index1.php) and fill the body with normal content? So th SE will see in no script a anchor and in the body too. Is the SE so clever he would think: "hé only a anchor in the no script and the body totaly filled with content, should the script be a redirection script? => spam"

Am I thinking very strange when you read (and understand :p ) what i descriped above???

french dread
31-10-2002, 04:29/04:29AM
I don't think its dangerous, and having experienced several times it works. There are many legitmate reasons to use scripts and redirections that are not spam, like adapting language, resolution, detecting flash etc...
In the noscript u can put html content, but do it only if u have poor content on the regular html part for some reason. What I do when cutsomers don't want to change their content is a H1 title followed with a paragraph and links to pages. No keyword stuffing, just logical structure and good copy.

DJR
31-10-2002, 04:32/04:32AM
Thank you very much! It's all clear to me!

Dirk-Jan