
Originally Posted by
mohaakilla51
theres no image for the flashlight in the example
Huh? The server that provides my 'free' personal pages isn't always the fastest at serving content or images, try again. Also, I will probably soon be updating the code to prevent added scollbars in certain situations, in most browsers.
Edit: You may have to refresh the page to get the new code.
but I understand what you are saying. My problem with the onMouseMove event is that it does it everytime the mouse moves a single pixel, and thus Might not run on slower computers...
They would have to be pretty darn slow, as the calculations for this are very simple.
Edit: A css positioning solution might be possible using the hover pseudo class, this would get somewhat complicated in IE 6 and less. In any case though, the CPU would still need to perform the math, so it wouldn't be all that much easier, if at all on a slow computer than the onmousemove method is anyway.
Bookmarks