ptsiii
11-09-2009, 02:33 AM
I know that this site could/should be done differently (better).
I am looking for someone to take a quick look over my code and give me some suggestions as to how to better accomplish what im trying to do. The page basically looks like I want it to look but is extremely inflexible.
With my limited knowledge this was the only way I knew how to put it together. Its a bit of a mess....
Any help would be greatly appreciated.
the site is:
www.bootsandpants.com/bts
<html>
<head>
<title>BTS_Layout</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
<!--
body {
background-image: url(images/BTSbkrnd.jpg);
}
#Table_01 tr td table tr td p {
font-size: 11px;
font-family: Tahoma, Geneva, sans-serif;
font-weight: bold;
color: #1E0E00;
}
-->
</style>
<script type="text/javascript">
<!--
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_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_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_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>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('images/homeOn.png','images/galleryOn.png','images/menuOn.png','images/PlaceAnOrderOn.png','images/contactOn.png','images/testimonialsOn.png','images/faqOn.png','images/aboutChefOn.png','images/friendsOn.png')">
<p>
<!-- ImageReady Slices (BTS_Layout.psd) -->
</p>
<table width="862" height="678" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
<tr>
<td colspan="5" rowspan="2">
<img src="images/logo.png" width="336" height="147" alt=""></td>
<td colspan="6">
<img src="images/BTS_Layout_02.png" width="458" height="107" alt=""></td>
<td>
<img src="images/BTS_Layout_03.png" width="67" height="107" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="107" alt=""></td>
</tr>
<tr>
<td rowspan="2"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image28','','images/PlaceAnOrderOn.png',1)"><img src="images/PlaceAnOrderOff.png" name="Image28" width="75" height="84" border="0"></a></td>
<td rowspan="2"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image29','','images/contactOn.png',1)"><img src="images/contactOff.png" name="Image29" width="75" height="84" border="0"></a></td>
<td rowspan="2"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image30','','images/testimonialsOn.png',1)"><img src="images/testimonialsOff.png" name="Image30" width="73" height="84" border="0"></a></td>
<td rowspan="2"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image31','','images/faqOn.png',1)"><img src="images/faqOff.png" name="Image31" width="76" height="84" border="0"></a></td>
<td rowspan="2"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image32','','images/aboutChefOn.png',1)"><img src="images/aboutChefOff.png" name="Image32" width="91" height="84" border="0"></a></td>
<td rowspan="2"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image33','','images/friendsOn.png',1)"><img src="images/friendsOff.png" name="Image33" width="68" height="84" border="0"></a></td>
<td rowspan="3">
<img src="images/BTS_Layout_10.png" width="67" height="516" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="40" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/BTS_Layout_11.png" width="61" height="476" alt=""></td>
<td>
<img src="images/BTS_Layout_12.png" width="16" height="44" alt=""></td>
<td><a href="www.brooklyntreatshoppe.com" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image25','','images/homeOn.png',1)"><img src="images/homeOff.png" name="Image25" width="91" height="44" border="0"></a></td>
<td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image27','','images/menuOn.png',1)"><img src="images/menuOff.png" name="Image27" width="80" height="44" border="0"></a></td>
<td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image26','','images/galleryOn.png',1)"><img src="images/galleryOff.png" name="Image26" width="88" height="44" border="0"></a></td>
<td>
<img src="images/spacer.gif" width="1" height="44" alt=""></td>
</tr>
<tr>
<td height="433">
<img src="images/BTS_Layout_16.png" width="16" height="432" alt=""></td>
<td colspan="9" bgcolor="#FDDAAC"><table width="717" height="414" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="259" height="18" align="center" valign="middle" bgcolor="#FFD9A8"> </td>
<td width="15" rowspan="3"><p> </p></td>
<td width="429" rowspan="3"><p>Brooklyn Treat Shoppe is a dessert catering company that specializes in flavor combinations that bring back memories of childhood and a sense of nostalgia. </p>
<p>As your internet bakery and ‘the' online hot spot for sweet treats, we offer personal touches to any event. </p>
<p>Our mission is to create fantastic finishing touches where we thrive on flavor combinations that make you think of your childhood, a comfortable place or a special holiday.</p>
<p>Sculpted cake masterpieces, or Cake Art, are our specialty but we also love to make classic cakes, miniature desserts and specialized cupcakes. And, yes, we do Wedding cakes too!</p>
<p>Heart and soul goes into every treat that makes its way out of our door - large or small. </p>
<p>We are here to please, the Brooklyn way!<br>
Have an idea? We'll make it happen.</p>
<p>Do you have an event that needs a dessert? <br>
Need a cake?</p>
<p>Contact us!<br>
718-866-5333<br>
customer_service@brooklyntreatshoppe.com</p></td>
<td width="14" rowspan="3"> </td>
</tr>
<tr>
<td height="133" align="center" valign="middle" bgcolor="#FFD9A8"><iframe src ="http://www.bootsandpants.com/bts/news.html" width="90%" height="90%">
<p>Your browser does not support iframes.</p>
</iframe></td>
</tr>
<tr>
<td height="263" align="center" valign="bottom"><img src="images/HomepagePics.png" width="259" height="225" align="middle"></td>
</tr>
</table></td>
<td>
<img src="images/spacer.gif" width="1" height="432" alt=""></td>
</tr>
<tr>
<td>
<img src="images/BTS_Layout_18.png" width="61" height="54" alt=""></td>
<td colspan="10">
<img src="images/BTS_Layout_19.png" width="733" height="54" alt=""></td>
<td>
<img src="images/BTS_Layout_20.png" width="67" height="54" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="54" alt=""></td>
</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>
I am looking for someone to take a quick look over my code and give me some suggestions as to how to better accomplish what im trying to do. The page basically looks like I want it to look but is extremely inflexible.
With my limited knowledge this was the only way I knew how to put it together. Its a bit of a mess....
Any help would be greatly appreciated.
the site is:
www.bootsandpants.com/bts
<html>
<head>
<title>BTS_Layout</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
<!--
body {
background-image: url(images/BTSbkrnd.jpg);
}
#Table_01 tr td table tr td p {
font-size: 11px;
font-family: Tahoma, Geneva, sans-serif;
font-weight: bold;
color: #1E0E00;
}
-->
</style>
<script type="text/javascript">
<!--
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_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_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_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>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('images/homeOn.png','images/galleryOn.png','images/menuOn.png','images/PlaceAnOrderOn.png','images/contactOn.png','images/testimonialsOn.png','images/faqOn.png','images/aboutChefOn.png','images/friendsOn.png')">
<p>
<!-- ImageReady Slices (BTS_Layout.psd) -->
</p>
<table width="862" height="678" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
<tr>
<td colspan="5" rowspan="2">
<img src="images/logo.png" width="336" height="147" alt=""></td>
<td colspan="6">
<img src="images/BTS_Layout_02.png" width="458" height="107" alt=""></td>
<td>
<img src="images/BTS_Layout_03.png" width="67" height="107" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="107" alt=""></td>
</tr>
<tr>
<td rowspan="2"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image28','','images/PlaceAnOrderOn.png',1)"><img src="images/PlaceAnOrderOff.png" name="Image28" width="75" height="84" border="0"></a></td>
<td rowspan="2"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image29','','images/contactOn.png',1)"><img src="images/contactOff.png" name="Image29" width="75" height="84" border="0"></a></td>
<td rowspan="2"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image30','','images/testimonialsOn.png',1)"><img src="images/testimonialsOff.png" name="Image30" width="73" height="84" border="0"></a></td>
<td rowspan="2"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image31','','images/faqOn.png',1)"><img src="images/faqOff.png" name="Image31" width="76" height="84" border="0"></a></td>
<td rowspan="2"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image32','','images/aboutChefOn.png',1)"><img src="images/aboutChefOff.png" name="Image32" width="91" height="84" border="0"></a></td>
<td rowspan="2"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image33','','images/friendsOn.png',1)"><img src="images/friendsOff.png" name="Image33" width="68" height="84" border="0"></a></td>
<td rowspan="3">
<img src="images/BTS_Layout_10.png" width="67" height="516" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="40" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/BTS_Layout_11.png" width="61" height="476" alt=""></td>
<td>
<img src="images/BTS_Layout_12.png" width="16" height="44" alt=""></td>
<td><a href="www.brooklyntreatshoppe.com" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image25','','images/homeOn.png',1)"><img src="images/homeOff.png" name="Image25" width="91" height="44" border="0"></a></td>
<td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image27','','images/menuOn.png',1)"><img src="images/menuOff.png" name="Image27" width="80" height="44" border="0"></a></td>
<td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image26','','images/galleryOn.png',1)"><img src="images/galleryOff.png" name="Image26" width="88" height="44" border="0"></a></td>
<td>
<img src="images/spacer.gif" width="1" height="44" alt=""></td>
</tr>
<tr>
<td height="433">
<img src="images/BTS_Layout_16.png" width="16" height="432" alt=""></td>
<td colspan="9" bgcolor="#FDDAAC"><table width="717" height="414" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="259" height="18" align="center" valign="middle" bgcolor="#FFD9A8"> </td>
<td width="15" rowspan="3"><p> </p></td>
<td width="429" rowspan="3"><p>Brooklyn Treat Shoppe is a dessert catering company that specializes in flavor combinations that bring back memories of childhood and a sense of nostalgia. </p>
<p>As your internet bakery and ‘the' online hot spot for sweet treats, we offer personal touches to any event. </p>
<p>Our mission is to create fantastic finishing touches where we thrive on flavor combinations that make you think of your childhood, a comfortable place or a special holiday.</p>
<p>Sculpted cake masterpieces, or Cake Art, are our specialty but we also love to make classic cakes, miniature desserts and specialized cupcakes. And, yes, we do Wedding cakes too!</p>
<p>Heart and soul goes into every treat that makes its way out of our door - large or small. </p>
<p>We are here to please, the Brooklyn way!<br>
Have an idea? We'll make it happen.</p>
<p>Do you have an event that needs a dessert? <br>
Need a cake?</p>
<p>Contact us!<br>
718-866-5333<br>
customer_service@brooklyntreatshoppe.com</p></td>
<td width="14" rowspan="3"> </td>
</tr>
<tr>
<td height="133" align="center" valign="middle" bgcolor="#FFD9A8"><iframe src ="http://www.bootsandpants.com/bts/news.html" width="90%" height="90%">
<p>Your browser does not support iframes.</p>
</iframe></td>
</tr>
<tr>
<td height="263" align="center" valign="bottom"><img src="images/HomepagePics.png" width="259" height="225" align="middle"></td>
</tr>
</table></td>
<td>
<img src="images/spacer.gif" width="1" height="432" alt=""></td>
</tr>
<tr>
<td>
<img src="images/BTS_Layout_18.png" width="61" height="54" alt=""></td>
<td colspan="10">
<img src="images/BTS_Layout_19.png" width="733" height="54" alt=""></td>
<td>
<img src="images/BTS_Layout_20.png" width="67" height="54" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="54" alt=""></td>
</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>