473,326 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

mouseover event for text in a table

Hi everyone,

I have a form that I created using tables. I want to create mouseover
events which act on labels that are inside certain table cells so that
when the mouse is over these label, something happens.

Currenty when you swipe the mouse over them nothing happens. The same
mouseover events DO work when I attach them to labels that are not
inside a table cell.

I can't find any documentation that says you can't do event handling on
contents of a table cell. Is that the case? Please let me know.

Thanks in advance.

Jul 23 '05 #1
2 3696
Hi

You may need to be more explicit about your code, and particularly what
you mean by "certain" table cells.

I get mousoevers on all of the following labels:-

<FORM method="post">
<TABLE>
<TR>
<TD><LABEL for="fname" onmouseover="alert('here')">First Name<INPUT
type="text" name="firstname" id="fname"></LABEL></TD>
<TR>
<TD><LABEL for="lname" onmouseover="alert('here')">Last
Name</LABEL><INPUT type="text" name="lastname" id="lname"></</TD></TR>
<TR>
<TD><LABEL for="" onmouseover="alert('here')">Last
Name</LABEL></TD></TR>

</TABLE>
</FORM>
I am not sure if this helps, but is it the LABEL or the INPUT you are
interested in?

It makes a difference whether the INPUT is inside the LABEL or not.

In the above case, mouse over works fore both labels, but not for the
second INPUT, because it its outside the label.

Jul 23 '05 #2
Baconbutty wrote:
[...]
JFTR:
<FORM method="post">
The `form' element requires the `action' attribute.
<TABLE>
<TR>
<TD><LABEL for="fname" onmouseover="alert('here')">First Name<INPUT
type="text" name="firstname" id="fname"></LABEL></TD>
"text" is the default value of the `type' attribute of the `input' element;
it can be safely omitted.
<TR>
<TD><LABEL for="lname" onmouseover="alert('here')">Last
Name</LABEL><INPUT type="text" name="lastname" id="lname"></</TD></TR> ^^ <TR>
<TD><LABEL for="" onmouseover="alert('here')">Last
Name</LABEL></TD></TR>
The implied `for' attribute's value is of type IDREF and thus must not be
empty. Either do not provide the attribute or provide it with an IDREF
value.
[...]

PointedEars
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Colin Steadman | last post by:
Help! I'm a stupid HTML bod and I dont do Javascript! I have a grey coloured table that displays certain columns in either red, green or orange to give meaning and emphasis to certain data. ...
2
by: Alex | last post by:
On my page I have a lot string like this: <span onmouseover="callMe(this)" onmouseout="callMe(null)" >abc1</span> <span onmouseover="callMe(this)" onmouseout="callMe(null)" >abc2</span> <span...
2
by: Mitch | last post by:
I am hosting a web browser ctl in a container that implements the IDocHostUIHandler interface. I'm using this to control the context menu.This works fine. Then, I added a mouseover event to the...
1
by: Luis Esteban Valencia | last post by:
Is it possible to implement mouseover on a particular word in a datagrid (not mouseover on the entire cell)? For instance, assuming tha I have a 'Definitions' MSSQL table as such: Definitions...
1
by: giloosh | last post by:
Hello All, How can you continue the mouseover event while the mouse is still over an object? For example: I put my mouse over a hyperlink and that triggers an object to move 10px to the right....
3
by: pamelafluente | last post by:
Hi dears, I have a DIV (with some colorful background). On top of this DIV I have another DIV entirely contained and having a transparent background. Both div absolutely positioned. ...
1
by: dave345 | last post by:
This javascript issue is in an app using C# / .Net 2.0 running on XP. First post, please mention if I mess up any conventions of this forum. I’ve got a mouseover event that only works properly...
2
by: markszlazak | last post by:
I'm a relatively slow response of table cells changing their background color with mouseover/our in IE6 (Win 2K) but the response is fine (fast) in Firefox. Why? The code is below. Sorry about the...
2
by: markszlazak | last post by:
Could someone check out the following code and please help me understand the problem and fix it. It seems like some events are not firing when my mouse moves over the table cells to quickly causing...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.