View Full Version : A few features needed.
RyanS
15-09-2006, 03:25 PM
How do i make it so if users res. is 800 x 600 it don't work.
RobbiePwnage
15-09-2006, 03:31 PM
This stops the viewing if the resolution is below Screen Width 1280 and Height 1024
To change it change
<1280 and
<1024
<script language="Javascript1.1">
function detect(){
if(screen.width<1280||screen.height<1024){
alert("You cannot view this site, your screen resolution is too low.")
}
else{
alert("Your Resolution Is Supported, YAY)
}
}
</script>
RyanS
15-09-2006, 03:44 PM
Thanks.
RobbiePwnage
15-09-2006, 03:46 PM
Missed a " off your screen resolution is supported, just to let you know ;)
EDIT:
<SCRIPT language="JavaScript">
<!--
if ((screen.width>=1024) && (screen.height>=768))
{
window.location="RESOLUTIONISOK.php";
}
else
{
window.location="LOWRESOLUTION.php";
}
//-->
</SCRIPT>
Would probably be easier
RyanS
15-09-2006, 04:17 PM
Thanks again.
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.