PDA

View Full Version : Why does it happans?


Mapisto
07-16-2002, 12:32 PM
Well I want a watermark so I'd written


<body background="dragon.jpg" bgcolor = "red">
<script language="JavaScript1.2">

if (document.all||document.getElementById)
document.body.style.background="url('nnn.jpg') white center no-repeat fixed"
</script>

ok it works just fine but i get a white frame on my background//
why?!:rolleyes:

gorilla1
07-16-2002, 12:57 PM
Your image is not as big as the screen resolution? If so, since you are not tiling the image, the unfilled portion of the browser area shows whatever the background color is set to (defaults to white).
G

tamienne
07-16-2002, 04:33 PM
Originally posted by Mapisto
if (document.all||document.getElementById)
document.body.style.background="url('nnn.jpg') white center no-repeat fixed"


change that to red

Mapisto
07-16-2002, 06:35 PM
:)