background=fixed with netscape ?!

They have: 9 posts

Joined: Jun 2000

I'm looking for a way to fix the background using Netscape, as it possible to do with Internet Explorer (background=fixed).

Thank you to answer me if somebody found a solution !

Aya

They have: 9 posts

Joined: Oct 2000

Here is the first known code I have seen which implements this function in Netscape:

<head>
<title>bg image</title>
</head>
<body background="whatever.gif" bgproperties="fixed">
&lt;script&gt;
if (navigator.appName == "Netscape") {
  document.write("<layer name=\"scrolly\" zindex=\"1\">");
  for (var i = 0; i < 100; i++) { // change this no. 100 to the minimum value which makes the image appear all over the screen.
  document.write("<img src=\"whatever.gif\">");
  }
  document.write("</layer>");
  document.write("<layer name=\"content\" zindex=\"2\">"); 
}

function alignIt() {
document.layers.scrolly.left = window.pageXOffset;
document.layers.scrolly.top = window.pageYOffset;
}
&lt;/script&gt;
put your text here
&lt;script&gt;
if (navigator.appName == "Netscape") {
  document.write("</layer>");
  setInterval("alignIt()",1);
}
&lt;/script&gt;
</body>
</html>
'

[Edited by voicebox on 10-30-2000 at 05:48 PM]

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.