I took this out of an application called StatcountX. It shows how the screen resolution is captured. You can't use this code "as-is", but it's a decent start.
Before going further, let me give you a list of all the different screen resolutions I have for the month so far. Are you really wanting to make this many versions?
thanks for that list atomic oh no i just gonna make one for these resolutions 800x600, 640x480, 1024x768, 1280x1024 if the client's resolution is in between then the server will send to the closest page. ex: if the client's res is 1024x671 the server will send 1024x768