Results 1 to 2 of 2

Thread: Recognise mouse click in a table...

  1. #1

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    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>

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  2. #2

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    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.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width