ngos Posted October 13, 2011 Posted October 13, 2011 hello all, I made a search in the forum but I couldnt find a topic to help me. So please be patient with me if I post a topic very common. 1. How can I have in thproduct_info.php page a fixed size for the thumbnails. The default of oscommerce sets width at 75px. Can I have a same value for the height ? So what ever the large pictures sizes are their thumbnail image to be for example 75X50 pixels ? so far I came across this code: <script type="text/javascript"> $('#piGal ul').bxGallery({ maxwidth: 300, maxheight: 200, thumbwidth: <?php echo (($pi_counter > 1) ? '75' : '0'); ?>, thumbcontainer: 300, load_image: 'ext/jquery/bxGallery/spinner.gif' }); </script> can I set the height for the thumbs e.g to 50px changing something here ? 2. How can I add a text above the large image in the gallery to notify guests to click it to enlarge ? I have attached a pic to explain better. thanks
OSC-Sevilla Posted October 13, 2011 Posted October 13, 2011 I would like to go one step better re the click to enlarge: http://www.oscommerce.com/forums/topic/380381-make-a-zoom-icon-hover-over-product-image-on-mouse-over/page__fromsearch__1
R B Posted April 30, 2012 Posted April 30, 2012 Does anyone have a solution for this? I'd also like to know how to set a height for the thumbnails rather than a width.
♥14steve14 Posted April 30, 2012 Posted April 30, 2012 Try changing thumbwidth: <?php echo (($pi_counter > 1) ? '75' : '0'); ?>, to thumbwidth: <?php echo (($pi_counter > 1) ? '50' : '0'); ?>, or if you want an image to size by height thumbwidth: <?php echo (($pi_counter > 1) ? '0' : '75'); ?>, REMEMBER BACKUP, BACKUP AND BACKUP
AronJeney Posted May 8, 2012 Posted May 8, 2012 Try changing thumbwidth: <?php echo (($pi_counter > 1) ? '75' : '0'); ?>, to thumbwidth: <?php echo (($pi_counter > 1) ? '50' : '0'); ?>, or if you want an image to size by height thumbwidth: <?php echo (($pi_counter > 1) ? '0' : '75'); ?>, This doesn't seem to work for me. Just makes the thumbs disappear. Any ideas?
burt Posted May 8, 2012 Posted May 8, 2012 You would need to play with the .js file that powers the bxgallery. That would not be straightforward. In general, look for width in that file, and see if you can do something for the height in a similar way.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.