jquery media handheld only screen

Out of context: Reply #2

  • Started
  • Last post
  • 6 Responses
  • vaxorcist0

    possibly a PHP/javascript hack.... like this (unless qbn tweeks code to be unreadable...)

    <?
    if(!isset($_GET['r']))
    {
    echo "<script language=\"JavaScript\">
    <!--
    document.location=\"$PHP_SELF?r=1&width=\"+screen.width+\"&Height=\"+screen.height;
    //-->
    </script>";
    }
    else {

    // Code to be displayed if resolutoin is detected
    if(isset($_GET['width']) && isset($_GET['Height'])) {
    // Resolution detected
    }
    else {
    // Resolution not detected
    }
    }

    ?>

View thread