# Invisible buttons on mouse move, help

**URL:** <https://forum.kirupa.com/t/invisible-buttons-on-mouse-move-help/205734>\
**Category:** Uncategorized\
**Created:** [November 1, 2006, 2:35pm UTC](https://forum.kirupa.com/t/invisible-buttons-on-mouse-move-help/205734 "2006-11-01T14:35:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xeyefex](https://avatars.discourse-cdn.com/v4/letter/x/58956e/32.png) [@xeyefex](https://forum.kirupa.com/u/xeyefex)\
**Post date:** [November 1, 2006, 2:35pm UTC](https://forum.kirupa.com/t/invisible-buttons-on-mouse-move-help/205734/1 "2006-11-01T14:35:17Z")

</div>

Hey,  
I’m trying to accomplish the effect i saw at:[http://www.richardfoster.com/](http://www.richardfoster.com/)  
(the next/prev button inside the portfolio, when the big picture loads).  
I need a next/prev button that divides half of the image area according to the mouse position while having the fade effect.  
I can’t figure out the trick behind this. i have tried different methods like startDrag, onMouseMove , setInterval … but i always get stuck in some loop and can’t get it to work.  
Any ideas on how to accomplish this button effect would be greatly appreciated.  
XeyefeX
