Jump to content

IE6 problem


smordue

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/187750-ie6-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.