17/12/2009, 10:00
|
| | Fecha de Ingreso: diciembre-2009
Mensajes: 201
Antigüedad: 14 años, 11 meses Puntos: 1 | |
Respuesta: Problema al modificar codigo slideshow y este el php acuerdense que un modulo consta de estos dos archivos
<?php // no direct access
defined( '_JEXEC' ) or die( 'Restricted access' ); ?>
<?php
$image = explode( ",", trim($params->get( 'images' )) );
$url = explode( ",", trim($params->get( 'urls' )) );
$title = explode( ",", trim($params->get( 'titles' )) );
$addhttp = trim($params->get( 'addhttp' ));
if ($addhttp)
{
for($i=0;$i<count($image);$i++)
{
$url[$i]="http://".$url[$i];
}
}
$space=trim($params->get( 'space' ));
$spacetext = " ";
for($i=1;$i<$space;$i++)
{
$spacetext .= " ";
}
?>
<script language="JavaScript1.2">
var width="<?php echo trim($params->get( 'width' )); ?>px"
var height="<?php echo trim($params->get( 'height' )); ?>px"
var bgcolor="<?php echo trim($params->get( 'bgcolor' )); ?>"
var pauseit="<?php echo trim($params->get( 'stopslide' )); ?>"
var marqueespeed=<?php echo trim($params->get( 'speed' )); ?>
var imagegap="<?php echo $spacetext; ?>"
var marqueecontent=new Array()
var finalslide1=''
<?php
for($i=0;$i<count($image);$i++)
{
$alt = $title[$i] ? ' alt="'. $title[$i] .'"' : '';
$alttitle = $title[$i] ? ' title="'. $title[$i] .'"' : '';
if ( $params->get( 'linked' ) )
{
$link = $url[$i] ? '<a href="'. $url[$i] .'">' : '';
$link_end = $url[$i] ? '</a>' : '';
}
$templink = $link.'<img src="'.JURI::root() . trim($params->get( 'folder' ))."/". $image[$i].'" border="0"'.$alt.$alttitle.">".$link_end;
?>
marqueecontent[<?php echo $i; ?>]='<?php echo $templink; ?>'
<?php
}
?>
</script>
<script src="<?php echo JURI::root(); ?>modules/mod_slideshow/scripts/vscript.js" language="JavaScript1.2"></script> |