I used Michael Bollman's fix and it's great for IE on Windows - can now access the shop, view product details, even has the nice slimbox effect when clicking on a larger product photo.
But now while everything else is fine, the lightbox effect doesn't work in Firefox or Safari on Mac. I just get the larger photo. Ugh - can someone help refine that just a bit more? What about a condition for IE, use the fix code, otherwise the original code (I'm not a PHP programmer - otherwise I'd just do this)?
Here's the section of code in question (with Michael Bollmann's fix for IE), found in /modules/mod_virtuemart/vm_JSCook.php:
if( $jscook_type == "tree" ) {
$menu_htmlcode .= "var treeindex = ctDraw ('div_$varname', $varname, $jscook_tree, '$jscookTree_style', 0, 0);";
}
else
$menu_htmlcode .= "window.onload = function(){cmDraw ('div_$varname', $varname, '$menu_orientation', cm$jscookMenu_style, '$jscookMenu_style');}";
$menu_htmlcode .="
Is there any way to test for IE and if true then do the onload function, otherwise do the original one so lightbox will work in browsers on Mac?