I am inserting the modified code. Please can you check to see if this is correct. Since it is php I am not sure. Modified line is in red.
<?php
/// $Id: mod_random_flash.php, v1.0 June 2007 DART Creations Exp $
/**
* Joomla 1.5 Random Flash Image
* @ package Joomla
* @ joomla Open Source is Free Software
* @ Released under GNU/GPL License :
www.gnu.org/copyleft/gpl.html
* @ Author : DART Creations
* @ version $Revision: 1.0 $
**/
defined( '_JEXEC' ) or die( 'Go Away' );
$flashfiles = intval($params->get( 'flashfiles' ));
$flashbase = $params->get( 'flashbase' );
$quality = $params->get( 'quality');
$background = $params->get( 'background');
$width = $params->get( 'width' );
$height = $params->get( 'height' );
$link = $params->get( 'link','' );
$top = rand (1,$flashfiles);
$content = <<<EOD
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="
fpdownload.macromedia.com/pub/shockwave/...ersion=7,0,0,0"
width="$width" height="$height" id="g1">
<param name="movie" value="$flashbase/$top.swf"/>
<param name="loop" value="true"/>
<param name="quality" value="$quality"/>
<param name="bgcolor" value="$background"/>
<param name="wmode" value="transparent"/>
<embed type="application/x-shockwave-flash" width="$width" height="$height" src="$flashbase/$top.swf"></embed>
</object>
EOD;
if ($link)
{
$content .= "<a href=\"
www.dart-creations.com\" style=\"font-size:1px;display:none;\">Joomla Random Flash Module by DART Creations</a>";
}
return $content;
?>