Dynamic HTML code not being saved

J

Jason

I am designing a web page using FP2000, and am having
problems with the Dynamic HTML code.

I am using buttons with the mouse-over feature, changing
the appearance of the buttons. This works fine, and I
save my work, and exit the program.

Next time I go to edit the web page, I have to do the
DHTML effects over again, its like it doesn't save the
code. Any ideas? Would upgrading to FP2003 help?
 
P

Peter Aitken

Jason said:
I am designing a web page using FP2000, and am having
problems with the Dynamic HTML code.

I am using buttons with the mouse-over feature, changing
the appearance of the buttons. This works fine, and I
save my work, and exit the program.

Next time I go to edit the web page, I have to do the
DHTML effects over again, its like it doesn't save the
code. Any ideas? Would upgrading to FP2003 help?

By "Dynamic HTML code" do you mean Javascript? It certainly should not
disappear. Can you post an example?

Peter Aitken
 
J

Jason

Yeah, its uses a javascript to animate the page object, in
this case, changing the picture.

The script is still in the HTML code, and there is a
javascript file, the problem only occurs when the program
is shut down and re-opened, it doesn't execute the
javascript.

Here is a section of the code in question. As stated, it
doesn't disappear, it just doesn't execute after closing
and reopening FP2000. BTW, I tried reinstalling FP2000,
and it didn't make a difference.

<script language="JavaScript" fptype="dynamicanimation">
<!--
function dynAnimation() {}
function clickSwapImg() {}
//-->
</script>
<script language="JavaScript1.2" fptype="dynamicanimation"
src="animate.js">
</script>
</head>

<body bgcolor="#000000" text="#FFFFFF" link="#008000"
vlink="#800080" onload="dynAnimation()">

<a href="Diversatrol_Home.htm"><img border="0"
src="Home1.jpg" width="86" height="38"
id="fpAnimswapImgFP5" name="fpAnimswapImgFP5"
dynamicanimation="fpAnimswapImgFP5"
lowsrc="Home.jpg"></a><br>
<a href="Diversatrol_System_Design.htm"><img border="0"
src="System%20Design1.jpg" width="86" height="38"
id="fpAnimswapImgFP6" name="fpAnimswapImgFP6"
dynamicanimation="fpAnimswapImgFP6" lowsrc="System%
 
P

Peter Aitken

Jason said:
Yeah, its uses a javascript to animate the page object, in
this case, changing the picture.

The script is still in the HTML code, and there is a
javascript file, the problem only occurs when the program
is shut down and re-opened, it doesn't execute the
javascript.

Here is a section of the code in question. As stated, it
doesn't disappear, it just doesn't execute after closing
and reopening FP2000. BTW, I tried reinstalling FP2000,
and it didn't make a difference.

<script language="JavaScript" fptype="dynamicanimation">
<!--
function dynAnimation() {}
function clickSwapImg() {}
//-->
</script>
<script language="JavaScript1.2" fptype="dynamicanimation"
src="animate.js">
</script>
</head>

<body bgcolor="#000000" text="#FFFFFF" link="#008000"
vlink="#800080" onload="dynAnimation()">

<a href="Diversatrol_Home.htm"><img border="0"
src="Home1.jpg" width="86" height="38"
id="fpAnimswapImgFP5" name="fpAnimswapImgFP5"
dynamicanimation="fpAnimswapImgFP5"
lowsrc="Home.jpg"></a><br>
<a href="Diversatrol_System_Design.htm"><img border="0"
src="System%20Design1.jpg" width="86" height="38"
id="fpAnimswapImgFP6" name="fpAnimswapImgFP6"
dynamicanimation="fpAnimswapImgFP6" lowsrc="System%
20Design.jpg"></a><br>

If someone replies to you are the bottom of the message you should do the
same - otherwise the quoted posts get all out of order and the whole thing
becomes unreadable.

I can make no sense out of your code. Why does the page call an empty
function when it loads? And what's the code in animate.js? And why would you
expect the script to be executed when FP opens? If you mean the script in
animate.js it will not be executed because it is in the <head> section.
There's no other script here.
 
J

Jason

-----Original Message-----


If someone replies to you are the bottom of the message you should do the
same - otherwise the quoted posts get all out of order and the whole thing
becomes unreadable.

I can make no sense out of your code. Why does the page call an empty
function when it loads? And what's the code in animate.js? And why would you
expect the script to be executed when FP opens? If you mean the script in
animate.js it will not be executed because it is in the
There's no other script here.

Peter,

I don't know why it calls an empty function in the head
section. I did the DHTML effects as it was described in
the Help files. I don't want the script to execute when
FP loads.

What I am saying is that when I save the web pages, close
FP, and then re-open the file and preview it, the effects
no longer work. Its like the script only works the first
time or doesn't work after FP has been closed and re-
opened?? I really don't know.

I have moved the function call out of the <head> section
and put it in the <boby> section, but it doesn't seem to
make a difference.

I am sending you the animate.js script file, see if it
makes sense to you.

Regards
Jason
 

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