Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

onMouseOut event not working good

Original Message
Name: clintxp
Date: March 26, 2007 at 06:39:33 Pacific
Subject: onMouseOut event not working good
OS: Windows XP Pro
CPU/Ram: Intel P4 2.8E, 512MB PC40
Comment:
I am doing an onMouseOut event on a table, but the event is also taking place when I move from a cell onto another (through the same table) cellpadding and cellspacing are set to 0. I am working on IE7

Here's the code of the event:
<table cellpadding=0 cellspacing=0 id="m1s" onMouseOut="m1s.style.visibility='hidden'" style="cursor:hand; padding:0px; position:absolute; left:0px; top:0px; height:75px; width=100px; z-index:2; visibility:hidden"><tr><td...

thanks :)


Report Offensive Message For Removal


Response Number 1
Name: Michael J (by mjdamato)
Date: March 26, 2007 at 07:33:58 Pacific
Subject: onMouseOut event not working good
Reply: (edit)
Try putting the table in a div and putting the mouseout event on the div.

Michael J


Report Offensive Follow Up For Removal

Response Number 2
Name: clintxp
Date: March 26, 2007 at 08:22:19 Pacific
Subject: onMouseOut event not working good
Reply: (edit)
I tried that also, the same result.

Report Offensive Follow Up For Removal

Response Number 3
Name: Michael J (by mjdamato)
Date: March 26, 2007 at 08:52:48 Pacific
Subject: onMouseOut event not working good
Reply: (edit)
I don't have IE7 on the machine I am working on at the moment. But, it works in IE6 and FF and Opera. Do you have the same problem in any other browsers?

Michael J


Report Offensive Follow Up For Removal

Response Number 4
Name: clintxp
Date: March 27, 2007 at 03:26:35 Pacific
Subject: onMouseOut event not working good
Reply: (edit)
I tried that also.

Here's my code:

<div id="m3s" onMouseOut="m3s.style.visibility='hidden'" style="cursor:hand; padding:0px; position:absolute; left:0px; top:0px; height:75px; width=100px; z-index:2; visibility:hidden">
<table cellpadding=0 cellspacing=0>
<tr height=25><td onclick="location.href='http://www.altavista.com'" style="background-color:'#1680ca'; color:'#d9e3e9'" onMouseOver="this.style.background='#d9e3e9'; this.style.color='#1680ca'" onMouseOut="this.style.background='#1680ca'; this.style.color='#d9e3e9'" width=100%><span class=fs12>Altavista</td></tr>
<tr height=25><td onclick="location.href='http://www.yahoo.com'" style="background-color:'#1680ca'; color:'#d9e3e9'" onMouseOver="this.style.background='#d9e3e9'; this.style.color='#1680ca'" onMouseOut="this.style.background='#1680ca'; this.style.color='#d9e3e9'" width=100%><span class=fs12>Yahoo!</td></tr>
<tr height=25><td onclick="location.href='http://www.google.com'" style="background-color:'#1680ca'; color:'#d9e3e9'" onMouseOver="this.style.background='#d9e3e9'; this.style.color='#1680ca'" onMouseOut="this.style.background='#1680ca'; this.style.color='#d9e3e9'" width=100%><span class=fs12>Google</td></tr>
</table>
</div>


Report Offensive Follow Up For Removal

Response Number 5
Name: clintxp
Date: March 27, 2007 at 03:29:07 Pacific
Subject: onMouseOut event not working good
Reply: (edit)
to view it you have to change the visibility to visible in the div style

sorry for not telling you before

thanks all of you ;)


Report Offensive Follow Up For Removal


Response Number 6
Name: Michael J (by mjdamato)
Date: March 27, 2007 at 07:57:45 Pacific
Subject: onMouseOut event not working good
Reply: (edit)
OK, I did my testing by changing the color onmouseout and had no anomolies. But, after some different scenarios I am getting the similar results. It appears that the onmouseout event is a momentary even when mouseing over a hyperlink.

However, in your situation I think there may be a workaround - assuming your implementation is similar to your example above. Since your div element is in a fixed position you could also give the div a fixed size. Then use the onmouseout trigger to call a function. That function can check the mouse pointer position and if it is outside the div then change the visibility of the div.

Michael J


Report Offensive Follow Up For Removal

Response Number 7
Name: clintxp
Date: March 27, 2007 at 23:17:44 Pacific
Subject: onMouseOut event not working good
Reply: (edit)
I did it like this:

<div id="m3s" width=100 height=75 onMouseOut="m3s.style.visibility='hidden'" style="cursor:hand; padding:0px; position:absolute; left:0px; top:0px; height:75px; width=100px; z-index:2; visibility:visible">
<table cellpadding=0 cellspacing=0 >

but did not work :/


Report Offensive Follow Up For Removal

Response Number 8
Name: clintxp
Date: March 28, 2007 at 07:27:31 Pacific
Subject: onMouseOut event not working good
Reply: (edit)
ok solved, I found a function somewhere to arrange this bug/problem

thanks michael ;)


Report Offensive Follow Up For Removal



Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: onMouseOut event not working good

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software




DSHUB24 Connection Problems

need help with dsl and dial up

novel 3.12

help mandriva install last straw!

Icon Scaling in Explorer Bar


The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC