From: Vuksic V. <Vu...@si...> - 2000-11-21 10:30:27
|
hello kit, i've been facing the same problem and the only quick solution i found, is to set some space around the text by dynlayer.setPadding(1) and using the mouseover-event. 1 pixel is aleady enough. hope it helps valentina -----Original Message----- From: Kit Dotson [mailto:kd...@cl...] Sent: Saturday, November 18, 2000 8:04 AM To: 'dyn...@li...' Subject: [Dynapi-Help] Events and setHTML. Hails! I've got an interesting problem/question. I'm using setHTML on a DynLayer and then adding an EventListener to it. I discovered that on the sections that were affected by the setHTML (i.e. the parts where the HTML shows up) do not respond to the listener. I have an onmouseover and an onmouseout. They aren't triggered while they are in the colored section of the layer however when I wander out of them and into the rest of the layer -- that is when they get executed. The way that I tested this was I had the layer double-sized (lengthwise) the mouseover dosn't happen when I enter it from the top or bottom (because that entire side is covered by the setHTML'd parts) but the sides, which are BRIGHT YELLOW (so that I know where the layer is at) do trigger the Event when I move the mouse into them. Anything that I'm doing wrong with this? What I really wanted to do was have the layer vanish when the mouse exited the DynLayer. I only added the onmouseover to see if the Events were being triggered at all. Much appreciated, Kyt. |