Move

This site has moved. New posts and material will now be added to http://www.tech-culture.co.tv/.

Tuesday, March 23, 2010

Embed Flash Videos

Embedding flash videos is really easy. All you have to do is copy this code, then replace the given fields in red with a direct link to the content you want to embed, and finally paste the code you just edited on the site you want to embed the video. You can use a text editor, like notepad, to edit this code.

You can delete the "so.addVariable('image','Paste link to the picture you want to use as a preview here');" line if you do not want a preview picture.


<script src="http://cl.lk/v1lp1" type="text/javascript">
</script>

<div id="mediaspace">
This text will be replaced</div>

<script type="text/javascript">
  var so = new SWFObject('http://cl.lk/v1lq7','mpl','470','320','9');
  so.addParam('allowfullscreen','true');
  so.addParam('allowscriptaccess','always');
  so.addParam('wmode','opaque');
  so.addVariable('file','Replace with link to the video you want to stream here');
  so.addVariable('image','Replace with link to the picture you want to use as a preview here');
  so.write('mediaspace');
</script>



What you should get is an embedded flash video like this

Halo 2 Move Along


This text will be replaced

No comments:

Post a Comment