Forum Moderators: open
4: 3 (old laptops - typically 1024:768)
16:10 (newer laptops - typically 1280:800)
16: 9 (recent laptops - typically 1366:768) <?php
$d = $screen_resolution_y / $screen_resolution_x;
if ($d=='0.75') {$ratio = '4:3';}
else if ($d=='0.8') {$ratio = '5:4';}
else if ($d=='0.625') {$ratio = '16:10';}
else if ($d=='0.5625') {$ratio = '16:9';}
else if (substr($d,0,4)=='0.56') {$ratio = '16:9';}
?>