Kod
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<?php
$image = explode( ",", trim($params->get( 'images' )) );
$url = explode( ",", trim($params->get( 'urls' )) );
$addhttp = trim($params->get( 'addhttp' ));
if ($addhttp)
{
for($i=0;$i<count($image);$i++)
{
$url[$i]="http://".$url[$i];
}
}
?>
<script type="text/javascript">
function New() { window.open("","new","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable
0,width=680,height=530");
}
var fadeimages=new Array()
<?php for($i=0;$i<count($image);$i++) { ?>
fadeimages[<?php echo $i; ?>]=["<?php echo JURI::root().trim($params->get( 'folder' ))."/". $image[$i]; ?>", "<?php echo $url[$i] ?>",onClick="New()","_new"]
<?php } ?>
var fadebgcolor="white"
</script>
<script src="<?php echo JURI::root(); ?>modules/mod_slideshow/scripts/fscript.js" language="JavaScript1.2"></script>
<style type="text/css">
.centerdiv{ /*IE method of centering a relative div*/
text-align: center;
}
.centerdiv>div{ /*Proper way to center a relative div*/
margin: 0 auto;
}
</style>
<div class="centerdiv">
<script type="text/javascript">
//new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
new fadeshow(fadeimages, <?php echo trim($params->get( 'width' )); ?>, <?php echo trim($params->get( 'height' )); ?>, 0, <?php echo trim($params->get( 'delay' )); ?>, <?php echo trim($params->get( 'stopslide' )); ?>, "<?php echo trim($params->get( 'random' )); ?>")
</script>
</div>
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<?php
$image = explode( ",", trim($params->get( 'images' )) );
$url = explode( ",", trim($params->get( 'urls' )) );
$addhttp = trim($params->get( 'addhttp' ));
if ($addhttp)
{
for($i=0;$i<count($image);$i++)
{
$url[$i]="http://".$url[$i];
}
}
?>
<script type="text/javascript">
function New() { window.open("","new","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable
0,width=680,height=530");
}
var fadeimages=new Array()
<?php for($i=0;$i<count($image);$i++) { ?>
fadeimages[<?php echo $i; ?>]=["<?php echo JURI::root().trim($params->get( 'folder' ))."/". $image[$i]; ?>", "<?php echo $url[$i] ?>",onClick="New()","_new"]
<?php } ?>
var fadebgcolor="white"
</script>
<script src="<?php echo JURI::root(); ?>modules/mod_slideshow/scripts/fscript.js" language="JavaScript1.2"></script>
<style type="text/css">
.centerdiv{ /*IE method of centering a relative div*/
text-align: center;
}
.centerdiv>div{ /*Proper way to center a relative div*/
margin: 0 auto;
}
</style>
<div class="centerdiv">
<script type="text/javascript">
//new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
new fadeshow(fadeimages, <?php echo trim($params->get( 'width' )); ?>, <?php echo trim($params->get( 'height' )); ?>, 0, <?php echo trim($params->get( 'delay' )); ?>, <?php echo trim($params->get( 'stopslide' )); ?>, "<?php echo trim($params->get( 'random' )); ?>")
</script>
</div>