Background stops scrolling

M

M.R.Van Luyn

Hi,

I just made a homepage with a scrolling background using:-

<body background="Pictures/stars.gif">
<script type="text/javascript" language="JavaScript">
<!-- Begin
var backgroundOffset = 0;
var bgObject = eval('document.body');
function scrollBG(maxSize)
{
backgroundOffset = backgroundOffset + 1;
if (backgroundOffset > maxSize)
backgroundOffset = 0;
bgObject.style.backgroundPosition = "0 " + backgroundOffset;
}
var ScrollTimer = window.setInterval("scrollBG(256)", 64);
// End -->
</script>

The problem is that when I pop up a daughter window, the parent's
background image dissapears and won't come back.

Can anyone please suggest a means by which I can get my background scrolling
again after popping up the daughter?

If it's any help the URL is http://members.iinet.net.au/~vanluynm/index.htm

Thanks,
Murray.

ps. It works fine on my local drive, but not when loaded from the web.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top