Thank you for your reply. I've got it so that when you add the item to the cart it shows which color you chose, but now the image swap doesn't work. Can you help me figure out why? In case I forgot to say, this is a static page. Here is the code:
Code:
<Script Language=Javascript>
<!-- HIDE FROM OLD BROWSERS
function showcolor()
{
var varcolorcode=document.orderform_16134.product_options[color].options[document.orderform_16134.product_options[color].selectedIndex].value;
var imgname="cc_" + varcolorcode + ".jpg";
document.images["colorcodeurl"].src=imgname;
document.images["enlargepic"].src="/images/enlarge.gif";
}
function loadstring()
{
var colorvalue=document.orderform_16134.product_options[color].options[document.orderform_16134.product_options[color].selectedIndex].value;
}
// STOP HIDING -->
document.write('<select size="1" name="product_options[color]" onChange="showcolor(); "><option SELECTED value="yellowblock">Yellow</option><option value="redblock">Red</option></select><font size="1">');
</script>