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
}
?>
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
}
?>