smordue Posted January 8, 2010 Share Posted January 8, 2010 I am using the following code for themeswitching, it woks great in everything but IE 6, <?php $files2 = scandir('../testsitestyles'); sort($files2); foreach($files2 as $file2) { if ($file2 == '.' || $file2 == '..') { continue; } $file_x2 = substr($file2, 0, -4); $file_y2 = explode("-", $file_x2); $thelist2 .= '<div onclick="$.fn.fancybox.close(); window.location.reload()" class="picks"><a href="style-switcher.php?style='.$file_x2.'"><img src="/images/tn/tn_'.$file_y2[1].'.jpg"/></a><br/>'.$file_x2.'</div>'; } ?> <div style="width:425px"> <?php echo $thelist2; ?> </div> Here is the styleswitcher.php: <?php $style = $_GET['style']; setcookie("style", $style, time()+604800); if(isset($_GET['js'])) { echo $style; } else { header("Location: ".$_SERVER['HTTP_REFERER']); } ?> It appears okay, but when you select, it does not seem to make the change. Works fine in ie7 up Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/187750-ie6-problem/ Share on other sites More sharing options...
mikesta707 Posted January 8, 2010 Share Posted January 8, 2010 It looks like IE6 doesn't like the javascript. are there any javascript errors on the page? Quote Link to comment https://forums.phpfreaks.com/topic/187750-ie6-problem/#findComment-991255 Share on other sites More sharing options...
smordue Posted January 8, 2010 Author Share Posted January 8, 2010 No errors, it hangs at downloading, i guess the page refresh. Quote Link to comment https://forums.phpfreaks.com/topic/187750-ie6-problem/#findComment-991289 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.