I have the following code ...
The problem is ..
When i type more links into the navigation cell, the image cell pulls down and the same happens with the fixtures because the cell on the right pushes up.
Is there any way of controlling these cells so they dont move.
I hope you can help, ive tried for hours with this one.
- Jon
JavaScript Beginner at work
Code:
<html>
<head>
<title> Beacon Inn Pool Team </title>
<style type="text/css">
.marquee { font-family: verdana; font-size: 12; color: red;}
td.font { font-family: verdana; font-size: 10; color: green;}
td.image { background-repeat:no-repeat}
h5.tdhead { font-family: verdana;}
a.nav_links { font-family: verdana; font-size: 10; color: green; text-decoration: none}
a.nav_links:hover { text-decoration: underline;}
p { font-family: verdana; font-size: 10; color: green;}
</style>
<script language="javascript">
function draw_fixture(date, home, away) {
document.write("<tr align='center'>");
document.write("<td class='font' width='25%'>");
document.write(date);
document.write("</td>");
document.write("<td class='font' width='25%'>");
document.write(home);
document.write("</td>");
document.write("<td class='font' width='5%'>");
document.write("VZ");
document.write("</td>");
document.write("<td class='font' width='25%'>");
document.write(away);
document.write("</td>");
document.write("</tr>");
}
</script>
</head>
<body bgcolor="#eaffea">
<div align="center">
<table width="700" height="500" border="1" bordercolor="gray" cellspacing="0" cellpadding="2" bgcolor="white"> <!-- *** Start Main Table *** -->
<tr>
<td class="image" width="450" height="125" valign="center" background="C:\Image1.jpg">
 
</td>
<td class="font" width="250" rowspan="2" align="right" valign="top" background="C:\Image3.jpg" style="padding-bottom:0;">
<h5 class="tdhead"> <u> Site Navigation </u> </h5>
<a href="" name="home" class="nav_links" id="home"> Home </a> <br/>
... <br/>
<a href="" name="fixtures" class="nav_links" id="fixtures"> <strong> Fixtures </strong> </a> <br/>
... <br/>
<a href="" name="team_stats" class="nav_links" id="team_stats"> Team Stats </a> <br/>
... <br/>
<a href="" name="pictures" class="nav_links" id="pictures"> Pictures </a> <br/>
<<< pulls down when i write more text
<!-- ***** IF I WRITE ANY MORE THE IMAGE WILL PULL DOWN ***** -->
</td>
</tr>
<tr>
<td class="font" width="450" rowspan="2" valign="top" align="justify">
<div align="center">
<h5 class="tdhead"> <u> Fixtures </u> </h5>
</div>
The following fixtures for 10 weeks ...
<br/>
<br/>
<br/>
<table width="80%" border="0" cellspacing="0" cellpadding="1">
<tr align="center">
<td class="font" width="25%"> <strong> Date </strong> </td>
<td class="font" width="25%"> <strong> Home Team </strong> </td>
<td class="font" width="5%"> <strong>   </strong> </td>
<td class="font" width="25%"> <strong> Away Team </strong> </td>
</tr>
<tr align="center">
<td class="font" width="25%">   </td>
<td class="font" width="25%">   </td>
<td class="font" width="5%">   </td>
<td class="font" width="25%">   </td>
</tr>
<script language="javascript">
draw_fixture("Feb 15th", "Beacon Inn", "Toby A");
draw_fixture("Feb 15th", "Beacon Inn", "Toby A");
draw_fixture("Feb 15th", "Beacon Inn", "Toby A");
draw_fixture("Feb 15th", "Beacon Inn", "Toby A");
draw_fixture("Feb 15th", "Beacon Inn", "Toby A");
draw_fixture("Feb 15th", "Beacon Inn", "Toby A");
draw_fixture("Feb 15th", "Beacon Inn", "Toby A");
draw_fixture("Feb 15th", "Beacon Inn", "Toby A");
draw_fixture("Feb 15th", "Beacon Inn", "Toby A");
</script>
<!-- ***** IF I WRITE ANY MORE THE RIGHT BOX WILL PUSH UP ***** -->
</table>
pulls up when i write text >>>>>>>>>>>>>>>>>>>>>
</td>
</tr>
<tr>
<td class="font" width="250" height="230" align="left" valign="top">
<div align="center">
<h5 class="tdhead"> <u> Hmmm </u> </h5>
</div>
</td>
</tr>
<tr>
<td class="font" colspan="2" height="20">
<div align="center">
Jonathan Percy Design . Copyright 2005
</div>
</td>
</tr>
</table> <!-- *** End Main Table *** -->
</div>
</body>
</html>
The problem is ..
When i type more links into the navigation cell, the image cell pulls down and the same happens with the fixtures because the cell on the right pushes up.
Is there any way of controlling these cells so they dont move.
I hope you can help, ive tried for hours with this one.
- Jon
JavaScript Beginner at work