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.
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.