|
-
Nov 15th, 2002, 04:31 AM
#1
Thread Starter
Evil Genius
Recognise mouse click in a table...
Hi all, I'll try to explain my problem - I've got an image on a web page (html). When the mouse is over this, hey presto, a div tag becomes visible underneath it with a load of submenus in.
I've got a table with 3 fields in - each for a submenu. I could use a button or image in each of these fields & capture the click event to do something, I wondered if I could trap the mouseover or click events for a standard table field (<td> though), if so could someone give me some very basic code for how I could recognise the click on one of these:
Code:
<DIV id="div1">
<table id="tbl1">
<tr id="tr1">
<td="td1"></td>
<td="td2"></td>
<td="td3"></td>
</tr>
</table>
</DIV>
-
Nov 15th, 2002, 06:12 AM
#2
Thread Starter
Evil Genius
It's okay thanks, I've just found there's an onclick event of a <td> tag - I've managed to use this to pass a value to a function.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|