[UPHPU] onclick clean, onmouseover messy
Wade Preston Shearer
lists at wadeshearer.com
Tue Nov 27 09:13:25 MST 2007
I am using the scriptaculous/prototype libraries to slide some
elements open and closed and am experiencing something strange. When I
initiate the action via an onclick, it works, but when I initiate it
via an onmouseover, it gets messy. Here is an example in action:
http://anavidesign.com/temp/test.php
If you mouse over the onmouseover ones slowly and carefully, you can
make it work without problems, but as soon as you speed up and jump
around, the list that dynamically is showing/hiding begins to "fall"
outside of the parent div.
Anyone have any ideas why this would work with onclick and not
onmouseover? I can do it fast with the click and it doesn't get messy?
Is it just that I am not able to do it fast enough and if I were it
would get messy with the click too?
For those unfamiliar with the scriptaculous/prototype libraries, they
way that it shows and hides is be adding or removing an inline
"display: none" from the element.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20071127/16cbe96a/smime.bin
More information about the UPHPU
mailing list