Canadian Posted January 11, 2011 Share Posted January 11, 2011 I've got the following "onclick" set up to swap the color of a product. I've had this code work in the past but for some reason it won't work on my new site. I must be missing something simple. Any thoughts? Thanks... // This is the main image I'm swapping. Below are the 10 color selector buttons <img src="../images/wheel_detail_90_blue.gif" name="90_zoom" id="90_blue" /> <img class="color_selector_left" src="../images/wheel_detail_color_selector_blue.gif" alt="thumb_blue" name="blue" id="blue" onclick="MM_swapImage('90_zoom','','../images/wheel_detail_90_blue.gif',1)" /> <img class="color_selector" src="../images/wheel_detail_color_selector_red.gif" alt="thumb_red" name="red" id="red" onclick="MM_swapImage('90_zoom','','../images/wheel_detail_90_red.gif',1)" /> <img class="color_selector" src="../images/wheel_detail_color_selector_green.gif" alt="thumb_green" name="green" id="green" onclick="MM_swapImage('90_zoom','','../images/wheel_detail_90_green.gif',1)" /> <img class="color_selector" src="../images/wheel_detail_color_selector_orange.gif" alt="thumb_orange" name="orange" id="orange" onclick="MM_swapImage('90_zoom','','../images/wheel_detail_90_orange.gif',1)" /> <img class="color_selector" src="../images/wheel_detail_color_selector_yellow.gif" alt="thumb_yellow" name="yellow" id="yellow" onclick="MM_swapImage('90_zoom','','../images/wheel_detail_90_yellow.gif',1)" /> <img class="color_selector" src="../images/wheel_detail_color_selector_pink.gif" alt="thumb_pink" name="pink" id="pink" onclick="MM_swapImage('90_zoom','','../images/wheel_detail_90_pink.gif',1)" /> <img class="color_selector" src="../images/wheel_detail_color_selector_purple.gif" alt="thumb_purple" name="purple" id="purple" onclick="MM_swapImage('90_zoom','','../images/wheel_detail_90_purple.gif',1)" /> <img class="color_selector" src="../images/wheel_detail_color_selector_grey.gif" alt="thumb_grey" name="grey" id="grey" onclick="MM_swapImage('90_zoom','','../images/wheel_detail_90_grey.gif',1)" /> <img class="color_selector" src="../images/wheel_detail_color_selector_black.gif" alt="thumb_black" name="black" id="black" onclick="MM_swapImage('90_zoom','','../images/wheel_detail_90_black.gif',1)" /> <img class="color_selector" src="../images/wheel_detail_color_selector_stealth.gif" alt="thumb_stealth" name="stealth" id="stealth" onclick="MM_swapImage('90_zoom','','../images/wheel_detail_90_stealth.gif',1)" /> Link to comment https://forums.phpfreaks.com/topic/224035-cant-get-my-onclick-to-work/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.