AaronChiles
04-18-2006, 03:18 PM
I am new to this forum and a post I found helped me out a lot, but I have some questions if I am doing everything right. First off, I am designing this website for a National Competition for FBLA (Future Business Leaders of America) it's a high school club.
The website which I am working on it http://nlc.naroni.com
And here is the code...I used php includes and page links to do the links, is this the most efficient way? What are some other options besides inline frames?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Welcome to Mooresville!</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="images/style.css" />
<script type="text/javascript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script type="text/javascript" src="images/flash.js">
</script>
</head>
<body bgcolor="#FFFFFF" style="background-image: url('images/bg_gold.jpg')" onload="MM_preloadImages('images/buttons/but_home_o.jpg','images/buttons/but_ourcommunity_o.jpg')">
<div align="center">
<table id="Table_01" width="617" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="7">
<img id="wtm_01" src="images/wtm_01.gif" width="491" height="52" alt="" /></td>
<td>
<img id="sail_top" src="images/sail_top.gif" width="36" height="52" alt="" /></td>
<td colspan="3">
<img id="wtm_03" src="images/wtm_03.gif" width="89" height="52" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="52" alt="" /></td>
</tr>
<tr>
<td colspan="11">
<img id="wtm_04" src="images/wtm_04.gif" width="616" height="13" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="13" alt="" /></td>
</tr>
<tr>
<td rowspan="8">
<img id="wtm_05" src="images/wtm_05.gif" width="13" height="521" alt="" /></td>
<td colspan="9" class="header">
<script type="text/javascript">
var flashban_top = new FlashObject("images/wtm_flash.swf", "ban_top", "590", "106", 6, "#5978b2");
flashban_top.write();
</script>
</td>
<td rowspan="8">
<img id="wtm_07" src="images/wtm_07.gif" width="13" height="521" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="106" alt="" /></td>
</tr>
<tr>
<td colspan="9">
<img id="wtm_08" src="images/wtm_08.gif" width="590" height="12" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="12" alt="" /></td>
</tr>
<tr>
<td rowspan="6">
<img id="wtm_09" src="images/wtm_09.gif" width="13" height="403" alt="" /></td>
<td rowspan="2" class="weather"><b>Current Conditions:</b> <?php
require_once("pxweather.class.php");
$w = new Weather($city = "KCLT", $force = true);
$w->load();
echo $w->getCurrent('temp.F');
?>
ºF</td>
<td colspan="7">
<img id="wtm_11" src="images/wtm_11.gif" width="384" height="30" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="30" alt="" /></td>
</tr>
<tr>
<td rowspan="2">
<img id="wtm_12" src="images/wtm_12.gif" width="109" height="23" alt="" /></td>
<td class="date">
</td>
<td rowspan="5">
<img id="wtm_14" src="images/wtm_14.gif" width="13" height="373" alt="" /></td>
<td colspan="3" rowspan="3" class="navigation">
<p class="navigation">
<a href="index.php?page=home" title="home"><img src="images/buttons/but_home.jpg" border="0" style="width: 154px; height: 29px" /></a>
<a href="index.php?page=history" title="history"><img src="images/buttons/but_history.jpg" border="0" style="width: 154px; height: 29px" /></a>
<img src="images/buttons/but_ourcommunity.jpg" style="width: 154px; height: 29px" />
<img src="images/buttons/but_businessindustry.jpg" style="width: 154px; height: 29px" />
<img src="images/buttons/but_entertainment.jpg" style="width: 154px; height: 29px" />
<img src="images/buttons/but_futureoutlook.jpg" style="width: 154px; height: 29px" />
<img src="images/buttons/but_gallery.jpg" style="width: 154px; height: 29px" />
<img src="images/buttons/but_maps.jpg" style="width: 154px; height: 29px" />
<img src="images/buttons/but_citationdocumentation.jpg" style="width: 154px; height: 29px" />
<img src="images/buttons/but_contactus.jpg" style="width: 154px; height: 29px" /></p>
<p class="navigation"> </p></td>
<td rowspan="5">
<img id="wtm_16" src="images/wtm_16.gif" width="1" height="373" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="17" alt="" /></td>
</tr>
<tr>
<td>
<img id="wtm_17" src="images/wtm_17.gif" width="193" height="6" alt="" /></td>
<td>
<img id="wtm_18" src="images/wtm_18.gif" width="107" height="6" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="6" alt="" /></td>
</tr>
<tr>
<td colspan="3" rowspan="2" class="content">
<div style="background-image: url(images/content.jpg); padding : 4px; width : 409x; height : 330px; overflow : auto; ">
<?php
switch($_GET['page']){
case "home":
include "home.php";
break;
case "maps":
include "maps.php";
break;
case "history":
include "history.php";
break;
default:
include "home.php";
}
?>
</div>
</td>
<td>
<img src="images/spacer.gif" width="1" height="335" alt="" /></td>
</tr>
<tr>
<td colspan="3" rowspan="2">
<img id="wtm_20" src="images/wtm_20.gif" width="154" height="15" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="4" alt="" /></td>
</tr>
<tr>
<td colspan="3">
<img id="wtm_21" src="images/wtm_21.gif" width="409" height="11" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="11" alt="" /></td>
</tr>
<tr>
<td colspan="11">
<img id="wtm_22" src="images/wtm_22.gif" width="616" height="13" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="13" alt="" /></td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="13" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="13" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="193" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="109" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="107" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="13" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="43" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="36" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="75" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="13" height="1" alt="" /></td>
<td></td>
</tr>
</table>
</div>
</body>
</html>
The website which I am working on it http://nlc.naroni.com
And here is the code...I used php includes and page links to do the links, is this the most efficient way? What are some other options besides inline frames?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Welcome to Mooresville!</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="images/style.css" />
<script type="text/javascript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script type="text/javascript" src="images/flash.js">
</script>
</head>
<body bgcolor="#FFFFFF" style="background-image: url('images/bg_gold.jpg')" onload="MM_preloadImages('images/buttons/but_home_o.jpg','images/buttons/but_ourcommunity_o.jpg')">
<div align="center">
<table id="Table_01" width="617" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="7">
<img id="wtm_01" src="images/wtm_01.gif" width="491" height="52" alt="" /></td>
<td>
<img id="sail_top" src="images/sail_top.gif" width="36" height="52" alt="" /></td>
<td colspan="3">
<img id="wtm_03" src="images/wtm_03.gif" width="89" height="52" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="52" alt="" /></td>
</tr>
<tr>
<td colspan="11">
<img id="wtm_04" src="images/wtm_04.gif" width="616" height="13" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="13" alt="" /></td>
</tr>
<tr>
<td rowspan="8">
<img id="wtm_05" src="images/wtm_05.gif" width="13" height="521" alt="" /></td>
<td colspan="9" class="header">
<script type="text/javascript">
var flashban_top = new FlashObject("images/wtm_flash.swf", "ban_top", "590", "106", 6, "#5978b2");
flashban_top.write();
</script>
</td>
<td rowspan="8">
<img id="wtm_07" src="images/wtm_07.gif" width="13" height="521" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="106" alt="" /></td>
</tr>
<tr>
<td colspan="9">
<img id="wtm_08" src="images/wtm_08.gif" width="590" height="12" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="12" alt="" /></td>
</tr>
<tr>
<td rowspan="6">
<img id="wtm_09" src="images/wtm_09.gif" width="13" height="403" alt="" /></td>
<td rowspan="2" class="weather"><b>Current Conditions:</b> <?php
require_once("pxweather.class.php");
$w = new Weather($city = "KCLT", $force = true);
$w->load();
echo $w->getCurrent('temp.F');
?>
ºF</td>
<td colspan="7">
<img id="wtm_11" src="images/wtm_11.gif" width="384" height="30" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="30" alt="" /></td>
</tr>
<tr>
<td rowspan="2">
<img id="wtm_12" src="images/wtm_12.gif" width="109" height="23" alt="" /></td>
<td class="date">
</td>
<td rowspan="5">
<img id="wtm_14" src="images/wtm_14.gif" width="13" height="373" alt="" /></td>
<td colspan="3" rowspan="3" class="navigation">
<p class="navigation">
<a href="index.php?page=home" title="home"><img src="images/buttons/but_home.jpg" border="0" style="width: 154px; height: 29px" /></a>
<a href="index.php?page=history" title="history"><img src="images/buttons/but_history.jpg" border="0" style="width: 154px; height: 29px" /></a>
<img src="images/buttons/but_ourcommunity.jpg" style="width: 154px; height: 29px" />
<img src="images/buttons/but_businessindustry.jpg" style="width: 154px; height: 29px" />
<img src="images/buttons/but_entertainment.jpg" style="width: 154px; height: 29px" />
<img src="images/buttons/but_futureoutlook.jpg" style="width: 154px; height: 29px" />
<img src="images/buttons/but_gallery.jpg" style="width: 154px; height: 29px" />
<img src="images/buttons/but_maps.jpg" style="width: 154px; height: 29px" />
<img src="images/buttons/but_citationdocumentation.jpg" style="width: 154px; height: 29px" />
<img src="images/buttons/but_contactus.jpg" style="width: 154px; height: 29px" /></p>
<p class="navigation"> </p></td>
<td rowspan="5">
<img id="wtm_16" src="images/wtm_16.gif" width="1" height="373" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="17" alt="" /></td>
</tr>
<tr>
<td>
<img id="wtm_17" src="images/wtm_17.gif" width="193" height="6" alt="" /></td>
<td>
<img id="wtm_18" src="images/wtm_18.gif" width="107" height="6" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="6" alt="" /></td>
</tr>
<tr>
<td colspan="3" rowspan="2" class="content">
<div style="background-image: url(images/content.jpg); padding : 4px; width : 409x; height : 330px; overflow : auto; ">
<?php
switch($_GET['page']){
case "home":
include "home.php";
break;
case "maps":
include "maps.php";
break;
case "history":
include "history.php";
break;
default:
include "home.php";
}
?>
</div>
</td>
<td>
<img src="images/spacer.gif" width="1" height="335" alt="" /></td>
</tr>
<tr>
<td colspan="3" rowspan="2">
<img id="wtm_20" src="images/wtm_20.gif" width="154" height="15" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="4" alt="" /></td>
</tr>
<tr>
<td colspan="3">
<img id="wtm_21" src="images/wtm_21.gif" width="409" height="11" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="11" alt="" /></td>
</tr>
<tr>
<td colspan="11">
<img id="wtm_22" src="images/wtm_22.gif" width="616" height="13" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="13" alt="" /></td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="13" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="13" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="193" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="109" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="107" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="13" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="43" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="36" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="75" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="1" height="1" alt="" /></td>
<td>
<img src="images/spacer.gif" width="13" height="1" alt="" /></td>
<td></td>
</tr>
</table>
</div>
</body>
</html>