PDA

View Full Version : perfect in firefox, IE its so MESSED up


killdragon
01-15-2006, 06:33 AM
wow, just wow- http://snapholiday.com/php/

i think its the javascript or my php-javascript cookie code thats messing it up, ill keep working on it but if someone tihnks of why then that would be great, for the #body div i used include()
here is the cookie code:

<?
if(isset($HTTP_COOKIE_VARS["width"])) {
$width = $HTTP_COOKIE_VARS["width"];
}
else
{
?>
<script language="javascript" type="text/css">
<!--
writeCookie();

function writeCookie()
{
var today = new Date();
var the_date = new Date("December 31, 2023");
var the_cookie_date = the_date.toGMTString();
var the_cookie = "width="+ screen.width;
var the_cookie = the_cookie + ";expires=" + the_cookie_date;
document.cookie=the_cookie;
}
//-->
</script>
<?php
}
?>

killdragon
01-15-2006, 03:01 PM
someone please help i need to fix this out by tonight!!

Jon Hanlon
01-15-2006, 08:26 PM
Bill Dortch wrote some helpful cookie routines.
Do a google on 'bill dortch'

http://www.google.com.au/search?hl=en&q=bill+dortch&meta=lr%3Dlang_en

killdragon
01-15-2006, 10:48 PM
OK
the EXACT line of VALID CSS thats messing up my poor page (in bold):
body {margin:0px; background-image: url(back_left.gif); background-position: left; background-repeat:repeat-y;}

can some explain-
WHY??????
and a possible solution