Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2006
    Posts
    450
    Tokens
    0

    Default A few features needed.

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

  2. #2

    Default

    This stops the viewing if the resolution is below Screen Width 1280 and Height 1024

    To change it change

    Code:
    <1280
    and
    Code:
    <1024
    Code:
    <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'
    );
    ?>

  3. #3
    Join Date
    Sep 2006
    Posts
    450
    Tokens
    0

    Default

    Thanks.

  4. #4

    Default

    Missed a " off your screen resolution is supported, just to let you know

    EDIT:

    Code:
    <SCRIPT language="JavaScript">
    <!--
    if ((screen.width>=1024) && (screen.height>=768))
    {
     window.location="RESOLUTIONISOK.php";
    }
    else
    {
      window.location="LOWRESOLUTION.php";
    }
    //-->
    </SCRIPT>
    Would probably be easier
    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'
    );
    ?>

  5. #5
    Join Date
    Sep 2006
    Posts
    450
    Tokens
    0

    Default

    Thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •