Twey's advice is the best course to follow but, many would prefer to continue using FP so, if that is the case, here is my second best advice:
Well, you might be able to configure FP so as to allow you to insert code like this without it mangling it so much. Read the manual or Google for help on that. Another alternative, and what I recommend in all cases like this, is to get your page looking like you want using FP but without any scripts. Save a copy of that somewhere to work on later if the need arises. Next open the page in notepad or simple text and add the scripts in according to the installation instructions, including any customization you've added. Never load this version of the page into FP ever again. To preview it locally, use the browser. To upload it, use FTP (preferred) or your host's online uploading tool.
Here is another solution I ran across* but, since I do not use FP, I haven't tested it:
In a text editor open the page whose code you wish to preserve.
At the beginning of the section of code you wish to prevent FrontPage from modifying, add the following line of code:
Code:
<!--webbot bot="HTMLMarkup" startspan -->
At the end of the code section, add the following line of code:
Code:
<!--webbot bot="HTMLMarkup" endspan -->
Save the changes to the file. The next time the file is opened in FrontPage, FrontPage will not attempt to alter the code between the two HTMLMarkup tags.
*Posted in these forums by usace-lrc and perhaps others.
Bookmarks