Main Content

WebCMS 7 Embedding Video

Previous Module: Including JavaScript
Next Module: Global Container

To embed Flash code on a WebCMS 7 page using WebCMS 7, you might have to manually edit the code first.

For example, code copied directly from YouTube will look something like this:

<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/HJer30-Lj2s&hl=en&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/HJer30-Lj2s&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

If you try to paste this into the source code, it will not work, because it is not valid XHTML. All "&" characters need to be replaced by "&amp;" in order to make it valid. The following is what is used in the source of this page to embed the video below:

<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/HJer30-Lj2s&amp;hl=en&amp;fs=1&amp;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/HJer30-Lj2s&amp;hl=en&amp;fs=1&amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>

 

Flash video