Hello
I want to create an image galery. When someone selects the images then the image is showing. I want when the user click on the half->right side of the image then goes to the next image otherwise (half->left side) goes to the precious image. How i can cut an image to the middle so i can use the javascript to do the rest
Thank you very much

I suspect that the easiest way to accomplilsh this is to use jQuery and leverage event.pageX and event.pageY. When you detect that the mouse is on either the right or the left, then perform the appropriate action.

http://api.jquery.com/event.pageX/

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.