Hi All

Can somebody please let me know why the following 2 bits of code won't work
in NN 4.7x:

1. onClick problems

<a onclick="ordering()" onMouseOut="ShowHand(0)" onMouseOver="ShowHand(1)"
target="viewer">
<img name="products" border="0" src="gifs/prod-off.gif" width="125"
height="29">
</a>

I have created the above so that when the user clicks the IMG it goes to my
JavaScript function called "ordering()" .  I would have thought that because
it is an <A> tag it would auto-change to Hand cursor when I move over it,
but it don't.

I have created the above "ShowHand()" function to do the following, but
Netscape will not change the hand to a cursor:

function ShowHand(w) {
 if (w = 1){parent.chooser.products.style.cursor = "hand";}
 if (w = 0){parent.chooser.products.style.cursor = "default";}
}

It seems simple enough so what am I doing wrong??


2. Visibility problems

When the user clicks the IMG that I mentioned in point 1, it is supposed to
dothe following function but it don't:

function ordering() {
parent.title.winform.winloc.style.visibility = "visible";
parent.title.winform.seeme.style.visibility = "visible";
parent.viewer.location=parent.title.winform.winloc.options[parent.title.winf
orm.winloc.selectedIndex].value
}

All this function does is make an IMG and a SELECT box become visible, but
it don't work.  In fact I can't make them invisible (style = "hidden" in the
tags of each type) to start with.  I thought NN supported the visibile style
attribute?

After the visible its then supposed to click to teh page that is selected in
the SELECT box.  To see this in better action, please have a look at
http://www.bardwells.co.uk to see what I mean.

Can somebody please clarify where I am going wrong on this as it is driving
me mad.

By the way, all this works perfect in IE 4 or greater.

Regards


Robbie



Reply via email to