PHP expert |
|
<script language="javascript">
<!-- Begin
if (screen.width == 800)
{
style = 'style_800.css';
}
else if (screen.width == 1024)
{
style = 'style_1024.css';
}
else if (screen.width == 1280)
{
style = 'style_1280.css';
}
else {
style = 'style_800.css';
}
// End -->
document.write('<link rel="stylesheet" href="'+style+'" type="text/css" />');
</script>
<script language="javascript"> <!-- Begin if (screen.width == 800) { style = 'style_800.css'; } else if (screen.width == 1024) { style = 'style_1024.css'; } else if (screen.width == 1280) { style = 'style_1280.css'; } else { style = 'style_800.css'; } // End --> document.write('<link rel="stylesheet" href="'+style+'" type="text/css" />'); </script>
je moet dan die 3 style maken, met daarin je width en height etc per table, body, whatever...
<?php
echo $_SERVER['HTTP_USER_AGENT'];
?>
<?php echo $_SERVER['HTTP_USER_AGENT']; ?>
voor de browser, maar ik vraag me af waarom je verschil wilt doen per browser... |