To
script for screen resolution
Moderator: General Moderators
script for screen resolution
Hello!
I'm looking for a (php)-script which gives a popup-screen when the visitors screen resolution is smaller than the usual 1024x786. Who can give me such script, or websites where I can find something equal?
Tnx!
To
To
Ahh here it is but you should have posted in Client Side Forum.
This will create an alert window if it less than 1024x768 and then open screen.html in new window
Code: Select all
<script language="Javascript" type="text/javascript">
<!--
var sWidth = screen.width;
var sHeight = screen.height;
if(sWidth < 1024 && sHeight < 768) {
widow.alert("You are using a screen smaller than 1024x768");
window.open("screen.html","Screen", "toolbar=no, location=no,direcotries=no,width=300,height=250");
}
//-->
</script>