Hi Robert.
Can I put this code between <body> </body>
else
<head> </head>
Because it's dont working same error;
I wrote that ;
<script>
if (screen.width=3D=3D800)
{
document.body.background=3D"images/login800.gif";
}
else
{
document.body.background=3D"images/login1024.gif"
}
</script>
******************************
=A0=A0=A0=A0=A0=A0=A0=A0 Best Regards
=A0=A0=A0 =A0=A0=A0=A0=A0 Ali Benzes
IT Developer&Programmer
******************************
=A0
=A0
-----Original Message-----
From: Robert Nyman [mailto:robert.nyman@c...]
Sent: Sunday, December 01, 2002 5:10 PM
To: JavaScript HowTo
Subject: [javascript_howto] SV: Document.body.background's problem
In the error message you're quoting, you have 'Document' with a capital
'D',
but in the code you have lower-case 'd's...
Something's not right there.
Whatever the reason for that, the correct code is:
document.body.background =3D "image1.gif";
/Robert
-----Ursprungligt meddelande-----
Fr=E5n: Ali Benzes [mailto:alib@k...]
Skickat: den 30 november 2002 19:57
Till: JavaScript HowTo
=C4mne: [javascript_howto] Document.body.background's problem
Hi All Friends.
I am receving this error,What's problem?;
'Document.body',null or not object
Here's the codes;
<script>
if (screen.width=3D=3D800)
{
document.body.background=3D'image1.gif'
}
else
{document.body.background=3D'image2.gif'}
</script>
******************************
Best Regards
Ali Benzes
IT Developer&Programmer
******************************