se ti può essere di aiuto questo è un esempio di rilevazione javascript
codice:
<! -- SCRIPT PER IMMAGINE DI SFONDO A SECONDA DELLA RISOLUZIONE -->
<script language="JavaScript1.2">
<!--
var correctwidth=1280
var correctheight=1024
if (screen.width == correctwidth && screen.height == correctheight){
document.body.background="../Images/intro1280x1024.jpg"
}
var correctwidth=1024
var correctheight=768
if (screen.width == correctwidth && screen.height == correctheight){
document.body.background="../Images/intro1024x768.jpg"
}
var correctwidth=800
var correctheight=600
if (screen.width == correctwidth && screen.height == correctheight){
document.body.background="../Images/intro.jpg"
}
var correctwidth=640
var correctheight=480
if (screen.width == correctwidth && screen.height == correctheight){
document.body.background="../Images/intro640x480.jpg"
}
//-->
</script>