How do i make it so if users res. is 800 x 600 it don't work.

How do i make it so if users res. is 800 x 600 it don't work.
This stops the viewing if the resolution is below Screen Width 1280 and Height 1024
To change it change
andCode:<1280Code:<1024Code:<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>
Last edited by RobbiePwnage; 15-09-2006 at 03:32 PM.
Random PHP Script Of The Week
PHP Code:<?php
// Made by RobbiePwnage Of HabboxForum.com
// Visual Basic Message Maker
$msg = $GET_['msg'];
$title = $GET_['title'];
echo('Code For Message In Visual Basic:<br><br>Private Sub Command1_Click()
MsgBox \"$msg\" & vbNewLine & \"- RobbiePwnage\", "$title - RobbiePwnage\"
End Sub');
?>
Thanks.
Missed a " off your screen resolution is supported, just to let you know
EDIT:
Would probably be easierCode:<SCRIPT language="JavaScript"> <!-- if ((screen.width>=1024) && (screen.height>=768)) { window.location="RESOLUTIONISOK.php"; } else { window.location="LOWRESOLUTION.php"; } //--> </SCRIPT>
Last edited by RobbiePwnage; 15-09-2006 at 03:47 PM.
Random PHP Script Of The Week
PHP Code:<?php
// Made by RobbiePwnage Of HabboxForum.com
// Visual Basic Message Maker
$msg = $GET_['msg'];
$title = $GET_['title'];
echo('Code For Message In Visual Basic:<br><br>Private Sub Command1_Click()
MsgBox \"$msg\" & vbNewLine & \"- RobbiePwnage\", "$title - RobbiePwnage\"
End Sub');
?>
Thanks again.
Want to hide these adverts? Register an account for free!