ah scusami cmq ecco la soluzione perfettamente funzionante:
codice:
<head>
<script type="text/javascript">
<!--
function setBack ()
{
    var larghezza = window.screen.width;
    var altezza = window.screen.height;
    if (larghezza == 800 && altezza == 600)
        document.body.style.backgroundImage = 'url("800x600.jpg")';
    else if (larghezza == 1024 && altezza == 768)
        document.body.style.backgroundImage = 'url("1024x768.jpg")';
    else if (larghezza == 1280 && altezza == 1024)
        document.body.style.backgroundImage = 'url("1280x1024.jpg")';
}
//-->
</script>
</head>
<body onload="setBack()">
</body>
grazie anche per quella soluzione comunque e per il tempo usato per aiutarmi!!!