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
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