View Full Version : onmouseover on certain pixels
junkmail
05-09-2003, 07:22 AM
HI People...
Is there any way that I could do a onmouseover effect(call a function) on a defined number of pixels
like a square or rectangle box?
or use the layer area to use onmouseover other than defineing onmouseover in DIV tag.
for example
<div id="Layer3" style="position:absolute; width:200px; height:115px; left: 321px; top: 63px;"></div>
can I tell the script to execute a certain function when the mouse is on certain pixels?
Thanks...
you could use a div tag and stick a transparent image (style-sheeted to a square the size you'd like it to be) and include the onmouseover event handler. If the image doesn't allow it, just stick an anchor with href="#" on it, that tag definitely takes onmouseover.
good luck!
junkmail
05-09-2003, 05:13 PM
THanks...
I know i can do that ... I have been trying this for quite a while..... but this is not what I need. The original problem is somewhat like this...
http://www.codingforums.com/showthread.php?threadid=19613
This is not the original code... Original colde is about 8-10 pages (LOST MY MIND IN IT)long... which runs off of other huge scripts.... So I can't post the real script... This problem is just a part of the script...
Thanks for your time... I appretiated
Does anyone else know if that's possible?
junkmail
05-09-2003, 05:30 PM
I have also been able to build up a layer infront of the cell....
but the same problem occurs of having the font comeup inbetween the mouse and the layer...
I have even workend on the font too no problem
but when It runs and the mouse comes over the cell; while moving the mouse, it acts like if I am givnig an electric shock to the cell because
MouseOut - Original Background and text
MouseOn Cell - Layr Comes UP, Changes Background and text
MouseOn Reaching Layer's Text- Changes BG and text to original
MouseOn Text - Layr Comes UP, Changes Background and text
THey problem is onmouseout.... because it is applied on the text in the layer and on the layer its self... that is because the user can move out of the cell by using the text or on the layer or the layer its self.... so when reaching from the layer to the layer's text onmouseout (uses a function to hide the layer )is applied.... SO the layer comes up and goes away...
Can I do something about the reaching part>>...?
Use the link about that I have provided.... the little script in there sort of explains what I mean
Hi I am sorry for the grabage english, questions, and problems and also if I am being stupid..... I have been codeing here for too long.... I go and eat something....
Thanks for your help....
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.