Forum Moderators: open

Message Too Old, No Replies

How to make entire table clickable... like the one in G. AdWords...

         

irock

9:00 am on Jan 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I just partner with overture... and I would like to make the entire table clickable... like the Google AdWords. I know it involves Javascript but I'm not very good at it. Could anyone help?

Thanks.

jatar_k

7:19 pm on Jan 12, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I was looking at something someone did for me that had this behaviour and he just put an onClick in the TD.

tedster

8:28 pm on Jan 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



jatar_k has the idea - Google does it the same way. But they also add onmouseover and onmouseout in order to get the cursor to change and indicate a link.

However not all currently used browsers support these events for <td>, so it's important to also have a regular link inside the table cell.

Mozilla, Explorer 6 and Opera 7 support those events for td, but Opera 6 and Netscape 4 do not. I'm not sure how far back Explorer support goes.

jatar_k

8:31 pm on Jan 12, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I think some, if not all, ie 5 versions support it.

The page I was talking about also has the rollover effects as well, quite nice on the whole and takes very little code.

tedster

10:57 pm on Jan 12, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



According to an old article on webreference [webreference.com] about version 4 browsers, IE 4 should offer support:

With Internet Explorer 4.0x, every HTML element on the page can be the source for a full set of mouse and keyboard events...

Although Navigator 4.0x greatly expanded its set of elements that generate events, the selection is still much more limited. Not all elements can be the source of a mouse or keyboard event.