Screen Resolution Detection

J

John Whitworth

This is a repost to more suitable group ...


Hi All,

My site, http://www.essexchurches.info uses, as its home page, a piece
of JavaScript, which determines the client's screen resolution, and
thereby selects one of two starting pages - 800x600 or 1024x768+.

I've discovered that this piece of trickery seems to thwart Google's
attempts to drill down into my site, so I need another way to do this.
I'm figuring that my welcome page needs to somehow contain the code for
both resolutions, to keep Google's attention long enough.

Can I use INCLUDE with ASP code? Or is there another way to go about this?

Thanks

JW
 
M

Murray

Here's an example.

My screen is 1280x1024. Your sniffer will serve me the 1024 page. But my
browser viewport is set the way I like it, i.e., at about 720px wide. Thus,
your page will be too wide (by alot) for my browser.

The only people you will catch are those who have their browsers maximized -
and that's a small part of the total

My point is that it's a wasted effort since it is so often wrong, and so
seldom right. Geddit?

The better solution is to build your page to accommodate all visitors.
 
J

John Whitworth

Murray said:
Here's an example.

My screen is 1280x1024. Your sniffer will serve me the 1024 page. But my
browser viewport is set the way I like it, i.e., at about 720px wide. Thus,
your page will be too wide (by alot) for my browser.

The only people you will catch are those who have their browsers maximized -
and that's a small part of the total

My point is that it's a wasted effort since it is so often wrong, and so
seldom right. Geddit?

The better solution is to build your page to accommodate all visitors.

I see your point. But I would *strongly* disagree that those users with
maximised browsers are in the minority. I did canvas opinion amongst
several target user groups. And the site you see today was the result.

The problem I have is that serving up images on virtually every single
page is a right pain, and takes so much space. Although I can
'accommodate' the 800x600 users, if I am to display even a medium-sized
image, I have already taken up 460x345 of those pixels. It doesn't leave
me a lot to play with.

Thanks anyway, I will bear in mind what you have said - I just don't
fancy a major re-write at the moment!! ;o)

JW
 
M

Murray

I see your point. But I would *strongly* disagree that those users with
maximised browsers are in the minority. I did canvas opinion amongst
several target user groups. And the site you see today was the result.

It's clearly completely dependent on the demographic you test at that
particular moment. Sounds much too flaky for me to make a professional bet
on.
The problem I have is that serving up images on virtually every single
page is a right pain, and takes so much space.

<shrug>Such is life. Well designed pages can accommodate that. I'm not
trying to imply that yours are not, but this is one of the "up front" things
that has to be put in the pot when you want to come up with a page layout
scheme.
Although I can 'accommodate' the 800x600 users, if I am to display even a
medium-sized image, I have already taken up 460x345 of those pixels. It
doesn't leave me a lot to play with.
Yes.

Thanks anyway, I will bear in mind what you have said - I just don't fancy
a major re-write at the moment!! ;o)


Been there, done that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top