HTML source changes when published, don't know why...

D

DavidJ410

Hi,
I am experimenting with flash so I inserted an HTML object into my web page
with the source below. The flash movie shows up fine in preview mode, but
when I publish to my web server, the movie is not there and when I view the
source, the source has been changed. See below. Any idea what is going on?

Thanks a lot.

Here's the source when I change to HTML view, movie plays fine...
<OBJECT
codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
height=60 width=468 align=absMiddle
classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME="_cx"
VALUE="12383"><PARAM NAME="_cy" VALUE="1588"><PARAM NAME="FlashVars"
VALUE=""><PARAM NAME="Movie"
VALUE="http://www.metallica.com/banners/dynamicbanner.swf"><PARAM NAME="Src"
VALUE="http://www.metallica.com/banners/dynamicbanner.swf"><PARAM
NAME="WMode" VALUE="Window"><PARAM NAME="Play" VALUE="-1"><PARAM NAME="Loop"
VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign"
VALUE=""><PARAM NAME="Menu" VALUE="-1"><PARAM NAME="Base" VALUE=""><PARAM
NAME="AllowScriptAccess" VALUE="always"><PARAM NAME="Scale"
VALUE="ShowAll"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie"
VALUE="0"><PARAM NAME="BGColor" VALUE="FFFFFF"><PARAM NAME="SWRemote"
VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing"
VALUE="1"><EMBED src="http://www.metallica.com/banners/dynamicbanner.swf"
quality=high bgcolor=#FFFFFF WIDTH="468" HEIGHT="60" ALIGN="absmiddle"
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"
DESIGNTIMESP=29867></EMBED></OBJECT>

Here's the source after I publish to my web host and view the source, no
movie...
<p align="center"><!--webbot bot="HTMLMarkup" startspan --><!--webbot
bot="HTMLMarkup" endspan --></p>
 
C

Cheryl Wise

What version of FrontPage please?

In pre 2003 versions there was a box you needed to check to prevent FP from
"fixing" your code but I don't have an older version installed on this
machine to check the exact location. If I recall correctly it is under the
Tools | Options | Advanced tab but I expect Thomas Rowe or someone else who
has an older version of FP installed will be along to correct me if my
memory isn't accurate.

Otherwise you can use the "Insert HTML" command using ctrl+q to insert your
Flash code.
 
T

Thomas A. Rowe

Sound like the user is using FP2003 and has Optimize HTML enable when publishing, which is then
stripping the code from the page.

In prior versions, you can enable Preserve Existing HTML under the Tools | Page Options | HTML
Source

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
D

DavidJ410

** Update **

So here's the kicker...

I just browsed the website from a different (new) PC and the flash is
working fine. It looks like the page was published as is, but the browser
for some reason ignored that part of the code? I am not exactly sure which
version of the browser I am running on the old pc, but I don't think it's
more than several months old. I will update the browser as a first step.
But why would the HTML source not be there when I view the source? Will the
browser strip something out if it does not understand it?

Thanks again.
---------------------

Sorry for the missing info...

I am using Frontpage 2002 and the "Preserve existing HTML" box is checked.
I could not find any other settings that would affect this. I looked in
Help, office online, etc.

I added the HTML code using the Insert, Web Component, Advanced... and like
I said the code is there when I switch to HTML view, and the movie works in
Preview Mode. It gets omitted when published.
When I add other things aside from the FLash movie, they work fine too...
 

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