Forum Moderators: open

Message Too Old, No Replies

modifying Dreamweaver

can it be done?

         

estebones

1:00 pm on Dec 5, 2003 (gmt 0)

10+ Year Member



hello all!
I have a question regarding the code produced in Dreamweaver is there any way to set dreamweaver up so that it does not produce certain tags that are not w3c compliant?
for example:
when you place a flash movie in your webpage, Dreamweaver generates a lot of code that is not w3c compliant. I have read on another thread here that there is a better way to get your flash movies on a webpage that will be w3c compliant, but im getting sick of having to go back and edit the code that Dreamweaver produces.
So is there ay way to get edit the way dreamweaver sdo that it generated the right code?

I hope I am being clear enough.
thanks in advance!

--este

XtendScott

7:14 pm on Dec 5, 2003 (gmt 0)

10+ Year Member



I would be curious if you tried to File > Convert > XHTML if it was still not compliant.

You could create a <SNIPPET> with Compliant code when you want to insert the Flash Movie.

phoenix09

11:17 pm on Dec 5, 2003 (gmt 0)

10+ Year Member



Be aware that neither Mozilla nor Opera will run flash through <object> tags, at least they didn't, unless they've fixed that in their latest releases. This is sort of annoying since both browsers are supposed to be w3c code compliant, but with the huge exception of the object tag.

The only way I know to create w3c compliant code that will also run in mozilla/safari/opera is to javascript in the <embed> tag using browser identification, like this:


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" id="topflash">
<param name="movie" value="images/flash/your_file.swf" />
<param name="loop" value="false" />
<param name="menu" value="false" />
<param name="quality" value="best" />
<param name="bgcolor" value="#000000" />
<script type="text/javascript">embed_flash('','flash','your_file.swf','topflash');</script>
</object>

where embed_flash() is a function that writes the embed tag with javascript.

Backdraft

12:53 pm on Dec 16, 2003 (gmt 0)

10+ Year Member



I found this method on a website, and it validates and works on all browsers I have tried (IE, Avant, Mozilla, Firebird, Netscape and K-Meleon and Opera) It also validates HTML 4.01 and XHTML 1.0. The only problem is that Opera doesnt recognize the Wmode parameter....
object data="Diablo.swf"
type="application/x-shockwave-flash"
width="737" height="73" align="middle">
<param name="movie" value="Diablo.swf"/>
<param name="wmode" value="transparent" />
</object>