In IE8 / IE7 and Chrome i have added an option for Fonts and i have created images for the fonts and when you choose the font it is meant to change to that image it worksi n FF and IE9 but when viewed in Ie8, Ie7 and Chome and probably opera and safari the images do not show for any of the personalizations? and have no clue why.
If someone could enlighten me on this it would be good the url is:
http://bluegeeks-testserver.co.cc/jacly ... oduct_id=1
EDIT: sorry i have only created an image for the AirStrip font, Also i have been reading and it says onclick event handlers dont work in IE or goog,e Chrome so this is the code which is effecting me:
Code: Select all
<?php if($option['mode'] == "select"){ ?>
<select name="option[<?php echo $option['option_id']; ?>][]"id="option[<?php echo $option['option_id']; ?>]"<?php echo $option['option_value'][0]['extra']['reqd'] == '1' ? ' validate="required:true"' : ''; ?><?php echo isset($option['option_value'][0]['extra']['allowmultiple']) && $option['option_value'][0]['extra']['allowmultiple'] == '1' ? ' multiple="multiple"' : ''; ?><?php echo isset($option['option_value'][0]['extra']['list_height']) ? ' size="'.$option['option_value'][0]['extra']['list_height'].'"' : ''; ?>>
<?php foreach ($option['option_value'] as $option_value) { ?>
<option value="<?php echo $option_value['option_value_id']; ?>" <?php echo (isset($option_value['option_image']) && !empty($option_value['option_image']) ? 'onchange="getPreview(\''.$option_value['option_image_thumb'] .'\', \''.$option_value['option_image_popup'] .'\');"' : ''); ?><?php echo $option_value['name']; ?>
<?php if ($option_value['price']) { ?>
<?php echo $option_value['prefix']; ?><?php echo $option_value['price']; ?>
<?php } ?>
</option>
<?php } ?>
</select></td>
<?php } //end if select ?>
Code: Select all
<script type="text/javascript"><!--
function getPreview(image,popup){
$('#image').attr('src', image); //return a preview file
$('a.thickbox').attr('href', popup); //return a preview file
}
//--></script>
Aaron
Aaron