Forum Moderators: open

Message Too Old, No Replies

NN4.x OnClick events

Which tags will this work on?

         

nspringer

7:44 pm on Jun 4, 2003 (gmt 0)

10+ Year Member



I'm in one of those situations where I have to at least minimally support NN4.

The navigation on the site uses an OnClick event on a <TD> tag to call a JavaScript function. We want the whole cell to be the active link.

Of course this doesn't work in NN4.x and the only thing I can find that OnClick works with is an <a> tag. But the <a> tag causes issues with the visuals in modern browsers.

Are there any other tags or work arounds to call this JavaScript function in NN4.x? I don't care if the event is only on the text in NN4.x.

Thanks,
Nick

Maxformed

8:28 pm on Jun 4, 2003 (gmt 0)

10+ Year Member



Can you put in a transparent gif and use the <a> tag? Maybe just a 1x1 pixel gif. I'm using that to call onMouseOver event in a site, and it's working with those old browsers. We test in NS 4.x and 7, as well as IE 5 and up on both PC and macs

Hope this helps

nspringer

8:51 pm on Jun 4, 2003 (gmt 0)

10+ Year Member



I don't think that will work in this case. Maybe I should add some more info.

There are also OnMouseOver and OnMouseOut events on the same <TD> tag which call JS to change the styles of the cell and the text in the cell.

If the text is in the <a> tag then it needs a style of its own and then the roll over scripts don't effect it. So now when you roll over the cell and the cell changes color and then when the cursor hits the text it changes color. Not the desired effect.

Hope that makes sense.

Maxformed

4:18 pm on Jun 5, 2003 (gmt 0)

10+ Year Member



Can you use a graphic for the link, instead of text? Not sure how you're scripting this. Using CSS?