Jump to content

plain html text interfears whith cell event onMouseOver


nadeemshafi9

Recommended Posts

hello guys

i have a simple timing construct, when a user pases the mouse over an item the time gets recorded and when they leave mouseOut the time gets recorded using A-sync js + php,

Big PROB

when the mouse gooes over the text in the cell that has the onMouseOver and onMouseOut event handelers attached, if it goes over text it assumes that its not over the cell anymore and handles the onMouseOut event how do i ovrcome this and i would like to handle the event for the entire cell not the contents inside it, and i cant because it gets disrupted if the mouse passes over the text whithin the cell.

Thanks for any help
Link to comment
Share on other sites

fenway u have a processor in ur brain dont you

thanks alot

[code]
<td onMouseOver="recordTimeOnMouseOver(<?php echo $row["id"]?>)" onMouseOut="recordTimeOnMouseOut()" valign="top" width="250px" style="text-align: center; z-index: 1;">
<div onMouseOver="cancelBubble()" onMouseOut="cancelBubble()">
<a href="showItem.php?id=<?php echo $row["id"]?>"><img src="img.php?id=<?php echo $row["id"] ?>" width="50px"></a><br>
<?php echo $row["name"]?><br>
<?php echo $row["type"]?><br>
<?php echo $row["sub_type"]?><br>
<?php echo $row["price"]?><br>
<a href="addToBasket.php?id=<?php echo $row["id"] ?>"><img src="../images/basket_plus.gif"></a><br><br>
</div>
</td>

[/code]

to cancel the inner elements reciving the event

[code]
function cancelBubble() {
event.cancelBubble = true;
}
[/code]
Link to comment
Share on other sites

yes i read about the differences in the direction of bubbling, do you have any sugestions, this is a univerisity project thats basicaly just showing off asyncronouse data mining and stuff, but i would think in a real life situation i should have the understanding.

thanks for any sugestions
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.