FrontPage 2003

H

HETHRSWLRD

When I choose a DHTML effect for a .gif file, I keep getting a warning messaging saying "Warning: this page contains script(s) that could cause errors when run with the dynamic animation scripts.
 
J

Jim Buyens

-----Original Message-----
When I choose a DHTML effect for a .gif file, I keep
getting a warning messaging saying "Warning: this page
contains script(s) that could cause errors when run with
the dynamic animation scripts.

This occurs when the DHTML Effect uses an event handler
that's already in use.

For example, suppose your page already contains a script
that runs whenever the page loads. The <body> tag will
then contain an onload= attribute, such as:

<body onload="runMyGizmo();">

where runMyGizmo is the name of a JavaScript function.

Now, suppose you use to DHTML Effects toolbar to
configure a second action that you want to occur when the
page loads. FrontPage needs to change the <body> tag so
it reads:

<body onload="dynAnimation()" language="Javascript1.2">

where dynAnimation is a JavaScript function that
FrontPage creates for you. Unfortunately, FrontPage finds
that the <body> tag's onload= attribute is already in
use! FrontPage has no way of insuring that both onload=
actions coexist peacefully, hence the error message
you've been getting.

There are two possible solutions:

o Use one effect or the other, but not both.

o Switch to Code view and combine the two onload=
actions by hand. In general, this requires
JavaScript programming skills.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
|| Microsoft FrontPage Version 2002 Inside Out
|| Web Database Development Step by Step .NET Edition
|| Troubleshooting Microsoft FrontPage 2002
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 

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

Similar Threads

dhtml effects 1
swap image problem 5
Script Error 7
FP2003 DHTML effects 1
"Warning: this page contains scrip(s) that could cause errors when 16
DHTML not working....script error 3
frontpage 2003 1
Active X error 1

Top