ok i figured you would need the code. It's really long. Basically it checks to see what resolution and what browser the user has and then includes files based on that.
Here's the code:
$error1 = " ";
$error2 = " ";
$error3 = " ";
$errormessage = "The file <b>".$loc."</b> doesn't exist. <br><br>
If you clicked a link to get here, please <a href=\"mailto:
pgr@paqmangames.com?subject=TTS Broken Link&body=$loc\" target=\"_new\"><u>Report It Here</u></a>.";
$loc = $id.".html";
If ($browsername == "Netscape") {
If ($screenwidth >= 1024) {
echo $error1;
}
If ($screenwidth < 800) {
echo $error3;
}
}
If ($browsername == "Microsoft Internet Explorer") {
If ($screenwidth < 800) {
echo $error2;
}
If ($screenwidth == 800) {
include("index/index2_1.html");
if(!$php){
if($id) {
if(file_exists($loc))
{
echo $loc;
}
else {
echo $errormessage;
}
}
if($loc == ".html") {
echo "welcome.html";
}
}
if($php="1"){
$phploc = $id.".php";
if($id) {
if(file_exists($phploc))
{
echo $phploc;
}
}
}
include("index/index2_2.html");
}
If ($screenwidth >= 1024) {
include("index/index1_1.html");
if(!$php){
if($id) {
if(file_exists($loc))
{
echo $loc;
}
else {
echo $errormessage;
}
}
if($loc == ".html") {
echo "welcome.html";
}
}
if($php="1"){
$phploc = $id.".php";
if($id) {
if(file_exists($phploc))
{
echo $phploc;
}
}
}
include("index/index1_2.html");
}
$screenwidth and $browsername are variables which are already as cookies by a previous page. $id is in the web address. The basic format is for a page with a changeable window in the middle. I used photoshop to make a really 'pretty' layout. I removed the error messages to shorten this post. I'm sure it's just one too many brackets or something like that. If you have any ways for me to shorten the code using functions or something i would love to hear it.
THANKS