I have been working on a new website http://www.crfc.net/new_site it uses a javascript to produce the menu that sits in the left hand shared border. The code that creates and runs the menu is
<script>
var menuTest1 = new CMenu(MenuDef, 'menuTest1');
menuTest1.create();
menuTest1.run();
</script>
when I added this to my HTML the menu was displayed but only after appearing in the top left hand corner of the screen and then dropping down in to the correct position. I raised this issue with the writers and was told that I needed to split the code like such
<script>
var menuTest1 = new CMenu(MenuDef, 'menuTest1');
menuTest1.create();
</script>
and then insert
<script>
menuTest1.run();
</script>
immediately before the </body> tag
I have made this change and now when the website is run the menu is in the correct position from the start.
The problem I am now having is when I update any page in MS Frontpage 2003 and publish my pages to the web it is changing the position of the .run part of the script to be higher up the html and this is causing the menu drop problem to reappear, to get round this problem I am having to edit the html in notepad or similar and FTP the pages to the site, this again fixes the problem until I use publish function and it puts me back to square one.
Does anyone know how to get round this "feature" of frontpage.
The menu drop problem is illustrated if you go to the website http://www.crfc.net/new_site and then select 'history of the club' from the menu. if you view the source you will see where FP has moved the .run to, before it was published it was just before the </body>
|