why does my html get moved

M

Mick Squires

below is my index page, when i publish it something in FP 2003 is moving the
5 lines of script that are immediately before </body> to a place about 10
lines higher up the code, this is having the effect on the menu dropping into
the left hand border when the page loads rather than it being static, if i go
into a text editor and move the code back to the original place and ftp the
index page back to my website it displays the menu perfectly. the website is
http://www.crfc.net This error is causing me major problems in maintaining my
site as I have to keep manually editing the pages and ftp'ing them rather
than publishing. This error happens on all the linked pages and not just
index.


<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<script language="javascript" src="/scripts/codethatsdk.js"></script>
<script language="javascript" src="/scripts/codethatmenupro.js"></script>
<script language="javascript1.2" src="/scripts/menu.js"></script>
<title>Clifton Rangers JFC</title>
<meta name="keywords" content="Clifton Rangers FC,Peter
Hoey,Reebok,crfc,brian street,blackpool junior football,clifton rangers
junior football club,parkinson and hartley ltd,topps tiles">
<meta name="description" content="junior football team">


<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<style>
<!--
div.Section1
{page:Section1;}
-->
</style>
<meta name="Microsoft Theme" content="ac_soccr 1111, default">
<meta name="Microsoft Border" content="tlr, default">
</head>
<body >
<p align="left"><b>Clifton Rangers JFC has been established
since 1977. The club exists
to promote football for all players, whatever their age, whatever their
standard, all are welcome. </b> </p>



<hr>

<div class="Section1">

<h2><font size="4">Chartered Standard of Excellence</font></h2>
<p align="justify"><font size="2">The future development of the club is to
be recognized for its commitment and
quality of developing players through the members, volunteers, coaches and
active parents. We are at present developing our club to meet a standard of
excellence.
</font> </p>
<p align="justify"><font size="2">The Football Association has a charter for
quality which sets out a code of
practice that represents the constitution of this club. It is the wish of
the club that by March 2006 we shall be awarded the charter of
quality as a chartered standard development club. improving at a local level,
attitude, technique and skill of all players at all levels.
</font> </p>
</div>
<hr>
<div class="Section1">
<p class="MsoNormal"><span lang="EN-GB">
</span></p>
<p class="MsoNormal">
<span lang="EN-GB" style="font-size:10.0pt;font-family:Arial">
</span>


</p>
<p class="MsoNormal">
<span lang="EN-GB"
style="font-size:10.0pt;font-family:Arial"> </a> </span></p>
<p class="MsoNormal"><b><span lang="EN-GB">


</span></b></div>
<hr>
<p> </p>
<p></p>
<p></p>
<p></p>
<p></p>
<center>
<a href="http://freelogs.com/stats/c/crfc/" target="_top"><img border="0"
alt="Free Web Counter"
src="http://xyz.freelogs.com/counter/index.php?u=crfc&s=scoreboard"
ALIGN="middle" HSPACE="4" VSPACE="2"></a><script
src=http://xyz.freelogs.com/counter/script.php?u=crfc></script>
<br><a style="font-size:12" href="http://www.freelogs.com/create.php"
target="_top"><font style="font-size:12" color="#666666">Free Hit
Counter</font></a>



<p>
<script>
menuTest1.run();
</script>
</p>

</body>
 
R

Ronx

You are using top, left and right shared borders, the code for which
are not present in the page snippet below, nor is the code for the
menu. Shared borders are implemented as tables, in your case the left
and right borders are added as table cells to the left and right of
your main content - in code view this will be above and below your
main content. That is, the right border will add code below the
menu.
If the menu uses absolute positioning, you will have to adjust this to
allow for the top and left borders, and if the menu is intended to
display at the bottom of the page, also allow for the text size in the
page to be changed by users (you cannot prevent this).
 
M

Mick Squires

Hi,
I didn't include the javascript menu as it is quite large, I can copy the
left border into the text. I am not sure how this will help as the problem to
me is why is FP 2003 moving my call to the script from </body> to elsewhere,
i need a tag of some sorts to basically say this code must stay here.

regards

Mick
 
R

Ronx

FP does not move the code from the rest of the main content, it adds
the table holding the shared borders around the content, and the code
for the right shared border will be in a table cell following the cell
containing the main content, that is the code for the right shared
border will ALWAYS be immediately before the </body> tag.
Use include pages, or a DWT if using FP2003, to layout your page
instead.
 
R

Ronx

PS - one solution retaining shared borders may be to place the menu in
a Bottom shared border - this will be before the </body> tag in code
similar to

<!--msnavigation--><table border="0" cellpadding="0" cellspacing="0"
width="100%"><td><p>code for menu</p>
</td></tr><!--msnavigation--></table></body>

</html>
 
M

Mick Squires

Hi Ron,
What you have put here has been very helpful to me, I have removed the call
to the javascript from the index and put it into the right hand border, this
has had the effect as follows ( i havent included all index file)

<img border="1" src="img/footballfoundation2.gif" width="155"
height="120"></a></p>
<p>
<script>
menuTest1.run();
</script>
</p>
</td></tr><!--msnavigation--></table></body>

the call to javascript is now at the end of index rather than a few lines up
which was causing me all the problems with the display of the menu.

regards

Mick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top