View Full Version : Need Help
joekd
01-16-2003, 10:52 PM
i made a website but its equally viewed by people with diffrent screen resolution i heard there is a way to detect someone screen resolution and load a page or template acording to that info where can i get this script if anyone has it laying somewhere please send it to me
catbert303
01-21-2003, 11:40 AM
you could use some javascript to detect the screen resolution, then redirect to an appropriate page, in the head of a "sniffer" page,
<script type="text/javascript">
var w = screen.width;
if (w < 800) {
document.location = 'verysmall.html';
} else if (w < 1024) {
document.location = 'slightlybigger.html';
} else if (w < 1280) {
document.location = 'biggerstill.html';
} else {
document.location = 'giantsize.html';
}
</script>
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.