I tried it by decrementing and incrementing the "x" position
of HBox to scroll it left and right respectively but in that case,
it scrolls the HBox just 1 pixel left or right and then stop.
I want HBox to continuously scroll in a direction as long as
the mouse is OVER THE IMAGE.
I also tried to use custom image using CSS but it shows very
small image. I want to use an image which is abut 50px high.
Any suggestions or help will be greatly appreciated.
I'm not really sure what to say about your CSS problem, but
possible to have it automatically scroll while the mouse is
image. On roll over, you can start a timer, and have that
the position every time it fires. Then, on roll out, you stop
Let me also put in a warning that I implemented exactly this
functionality once, and found that it was incredibly
confusing for the
user. Mouse movements are generally viewed by the user to be
They're used often as an extension of the user's focus. By
movements trigger an active process that changes the user's
can feel like you're breaking that contract. It could work
your application, but it's something to be wary of.