I'm trying to do a resolution sniff, the result will determine which file loads as my header. Can't get it to work. Can someon have a quick peek at my code and tell me where I'm goign wrong?
<script language="javascript">
//header
if (window.screen){
var w = screen.width;
if(w<740){
document.write("<?php require_once('test2.php'); ?>"
}
if(w>=740 & w<835)
document.write("<?php require_once('test2.php'); ?>"
if(w>=835){
document.write("<?php require_once('test2.php'); ?>"
}
}
//finishheader
</script>
Ta
<script language="javascript">
//header
if (window.screen){
var w = screen.width;
if(w<740){
document.write("<?php require_once('test2.php'); ?>"
}
if(w>=740 & w<835)
document.write("<?php require_once('test2.php'); ?>"
if(w>=835){
document.write("<?php require_once('test2.php'); ?>"
}
}
//finishheader
</script>
Ta