I am playing around trying to prototype some ideas for touch interface and need some coding help with the following:

I need code to:

Thanks,
Stephen