Help /w script. doesn't work for NS6

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Kyori
Forum Newbie
Posts: 23
Joined: Mon Oct 14, 2002 5:23 am
Contact:

Help /w script. doesn't work for NS6

Post by Kyori »

This works fine for IE6 and Opera6 but not /w NS6.
____________________

javascript part:

Code: Select all

function out(loc,block) 
{
loc.style.visibility="hidden";
block.style.visibility="hidden";
}

function over(loc,block) 
{
loc.style.visibility="visible";
block.style.visibility="visible";

}
Somewhere else in the code:

Code: Select all

<script>
for(ey=$y-4,a=0;ey!=$y+5;ey++) 
{
	for(ex=$x-4;ex!=$x+5;ex++,a++) 
	{
 		document.write('<span id="b' + ex + 'b' + ey + '" style="position:absolute;visibility:hidden;left:0;">');
		document.write('HELLO' + ex + '</span>');
	} 
}
</script>

another script. Part of anchor.

Code: Select all

onMouseOver="over(l' + ex + 'l' + ey + ',b' + ex + 'b' + ey + ')"  onMouseOut="out(l' + ex + 'l' + ey +',b' + ex + 'b' + ey +')"

The layer showing "HELLO" is of SPAN (block on upper script) and I can't get it to work for NS6. However the loc (upper script) is an image and the upper script works for it on NS6 provided i delete the entry of BLOCK from the mouse events.

How can I make SHOW and HIDE span or div work for NS6? thanks
Post Reply