problems setting up include files

K

karen

I'm working with FP2003 (but tried and had the same thing
happen in 2002) and have created a page that I'm trying to
break up into include files. However, when I create a file
and put the code into it, all the JavaScript is
automatically eliminated by FP. I thought that I set up my
options to use the same HTML format. I expected this not
to change the format.

I input this:

<link rel="stylesheet" href="deckscapes.css"
type="text/css">
<script language="JavaScript" fptype="dynamicanimation">
<!--
function dynAnimation() {}
function clickSwapImg() {}
//

function FP_preloadImgs() {//v1.0
var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new
Array();
for(var i=0; i<a.length; i++) { d.FP_imgs=new Image;
d.FP_imgs.src=a; }
}

function FP_goToURL(url) {//v1.0
window.location=url;
}
-->
</script>
<script language="JavaScript1.2" fptype="dynamicanimation"
src="animate.js">
</script>


When I hit save all that remains in the code is:

<link rel="stylesheet" href="deckscapes.css"
type="text/css">

Do I need to do this in NotePad and then open it in FP for
it not to mess with the code? This is sadly frustrating
since I keep telling people that FP doesn't mess with code
like it used to.

Thanks in advance for any help.

Karen
 
K

karen

Actually Tom, that's not true. I've pulled in include
files before for head tags outside the body tags to set up
meta and title tags for sites. It may not work for the JS
unless it's in the body tags though. Maybe that was what
you meant. I actually got it to work when I modified the
files in Notepad rather than FrontPage. That's just a lot
of extra work I'd rather not deal with.

Thank you!

:eek:) Karen
 

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