background=fixed with netscape ?!
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
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
voicebox posted this at 22:44 — 30th October 2000.
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">
<script>
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;
}
</script>
put your text here
<script>
if (navigator.appName == "Netscape") {
document.write("</layer>");
setInterval("alignIt()",1);
}
</script>
</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.