al momento ho risolto cosi, però mi dici se è corretto?
codice:
/*nello script js, intercetto la risoluzione*/
//RISOLUZIONE DELLO SCHERMO
swidth=screen.width;
sheight=screen.height;
savheight=screen.availHeight;
savwidth=screen.availWidth;
sdepth=screen.colorDepth;
t_pixel= swidth + " x " + sheight;
/*nella default.php eseguo il controllo e scelgo l'immagine di background appropriata*/
<link type="text/css" rel="stylesheet" href="css/FF.css">
<script src="script/script.js" type="text/javascript"></script>
<script>
if(t_pixel=="1024 x 768"){
document.write("<style>body{font-family : arial,sans-serif;font-size : 12px;text-align : center;background-image:url(img/sf.gif);}</style>");
document.write(t_pixel);
}
else {
document.write("<style>body{font-family : arial,sans-serif;font-size : 12px;text-align : center;background-image:url(img/sf1240x1024.gif);}</style>");
document.write(t_pixel);
}
</script>
che ne pensi?
Grazie ancora