I want use cloud zoom script (http://www.professorcloud.com/mainsite/cloud-zoom.htm) in my ecommerce website for image zoomer. I have checked the code and I think I need 3 different size image of an image to implement cloud zoom script. I have 4 different images of a product which link is saved in my database table. Is it possible to retrieve a singe image with different size from my table to implement cloud zoom image gallary? please let me know your advice or ways to implement. thanks.
You may have other reasons to store 4 image paths in your database table, but setting up a naming convention and following it would probably be enough to use this jQuery code.
yes each product have front/back/right/left image. yeh you are right the product name is fixed and with your proposed naming convension how can I implement cloud zoom image gallary with these 4 images of a product? can you please write me a bit of code? thanks.
I looked at cloud zoom as I had not heard of that service, and you kindly linked to it – to discover it is essentially a mixture of js/jQuery and HTML code which you can adapt to interleave with PHP generated to values. Nice.
You have a go at doing it yourself and come back with specific questions about PHP, I won’t write code for you, but I will help you learn if that is what you are after…
Hint: get cloud zoom working with hardcoded values which you have entered concerning one of your products, then when that is working properly to your satisfaction start replacing the values from variables you create in PHP get that working, and only THEN replace them with values that PHP drags from your db.