Glad to help!
Use the background-image approach is only to make calculating the
position easier - it allows you to use percentages and avoid messy
calculations.
But as long as it was some help to you.
Liam
Sbudah wrote:
I declare you a God.
It works although I still need to change it from
I declare you a God.
It works although I still need to change it from being a background
image to a div that changes position but this has helped me and has
most definitely given me ideas. You may see it in action at
http://www.myfuche.com/
Thanks Liam.
On Jan 29, 11:41 pm, Liam Byrne wrote:
>
MUCH simpler than that.
1) Put the image into the background of the 500px div
2) Capture / track the mouse position
3) Divide the x-position by 5
4) Use that to set the x-axis percentage of the background position
Just make sure you set the IE6 background image cache so that it doesn't
flicker
3 matches
Mail list logo