back

How to embed a flash file

Example:

Alternative content

These instructions assume that the flash file (.swf format) is ready to be embedded into a web page.
Before proceeding make sure:

  1. For Site Manager 2: Turn on the object flash-media for the page that contains the video.

    If you are embedding this using news or events module, make sure that the object flash-media is activated for news-detail.cfm / event-detail.cfm

    For Site Manager 1: Copy and paste the following code into the <head> section of the HTML, usually in the template.


    <script type="text/javascript" src="http://datasearch2.uts.edu.au/common-assets/jwmediaplayer/swfobject.js"></script>
  2. Copy and paste the following code where you want the flash to be and then modify the highlighted value as necessary.

    
    <div id="banner-wrapper">
    	<script type="text/javascript">
    		swfobject.embedSWF(&quot;&lt;sm object=&quot;site url&quot; server=&quot;Folders&quot; /&gt;/images/css/pg.swf&quot;, &quot;mediaholder&quot;, &quot;900&quot;, &quot;240&quot;, &quot;9&quot;, &quot;http://datasearch2.uts.edu.au/common-assets/jwmediaplayer/expressInstall.swf&quot;);
    	</script>
    	<div id="mediaholder">
    		<p>To view this video please upgrade your Flash Player or turn Javascript on.</p>
    	</div>
    </div>

    If you are embedding this using news or events module, you must use an absolute URL for the .swf file, eg. use the live URL.

back