Closed Thread Icon

Preserved Topic: Netscape script problems (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=7816" title="Pages that link to Preserved Topic: Netscape script problems (Page 1 of 1)" rel="nofollow" >Preserved Topic: Netscape script problems <span class="small">(Page 1 of 1)</span>\

 
Relain
Paranoid (IV) Inmate

From: westernesse
Insane since: Jul 2000

posted posted 08-24-2001 15:47

right this should be fairly straightforward. I have a number of Div's set up to cover my screen while some scripts load. but i can't seem to change their zIndex in netscape so that they wil go to the bottom of the stack and be hidden away nicely.
here's the script/html section

<div id="background" style="position:absolute; left:0; top:0; width:100%; height:100%; z-index=-1; background-color:white;"></div>
<div id="cover" style="position:absolute; left:0; top:0; width:100%; height:100%; z-index:500; background-color:white">

<a href="#" onClick="win_flip();">
<div id="clicky" style="position:absolute;left:45%; top:20%; width:200px; height:100px; border-width:2px; border-style:solid; border-color:#808080; background-color:#C0C0C0; color:#C0C0C0">
<h5 style="color:black; font-size:14px,text-align:center;font-family:tahoma;"><a href='#' onmouseover="popUp(3)" onmouseout="popOut()" onfocus="if(this.blur)this.blur()" onClick="win_flip();"><center>ASTeC Website</center></h5></a></p>
<p><center> <a href="http://accelerator.dl.ac.uk/index.html/" onmouseover="popUp(4)" onmouseout="popOut()" onfocus="if(this.blur)this.blur()">Old Browsers</a></center></p>

</div>


</div>
</a>

<script laguage="javascript">
function win_flip(){
if (document.all) {
cover.style.zIndex='-100';
clicky.style.zIndex=-201;
}
else if (document.layers) {
cover.zIndex=-100;
clicky.zIndex=-201;
}
}

i tried using the netscape javascript console [thanks for telling me about that doc]. it just tells me that win_flip() is undefined and thats about it.
Thanks

: : Relain : ::

DmS
Paranoid (IV) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

posted posted 08-24-2001 15:56

Hi, tested this locally and after I corrected:
"<script laguage="javascript">"
to
"<script language="javascript">" (typo)
and added
</script>
after the script I didn't get any errors in NS 4.72 on W2k.
/Dan

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 08-24-2001 18:23

You also have an syntax error in your background div. z-index=-1; should read z-index:-1;

« BackwardsOnwards »

Show Forum Drop Down Menu