Ver Mensaje Individual
  #3 (permalink)  
Antiguo 28/04/2009, 16:55
Avatar de Kristhoff
Kristhoff
 
Fecha de Ingreso: abril-2009
Ubicación: Popayán - Cauca
Mensajes: 550
Antigüedad: 12 años, 4 meses
Puntos: 12
Respuesta: Modificar plantilla con banner swf

Hola, lo que he puesto es lo siguiente:

Código:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="h**p://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="32" height="32">
  <param name="movie" value="banner.swf" />
  <param name="quality" value="high" />
  <embed src="banner.swf" quality="high" pluginspage="h**p://***.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="32" height="32"></embed>
</object>
donde "banner.swf" es mi animacion y las dimenciones son: 898x160 px.

Anexo el codigo del head_includes.php y parte del index.php

Head_includes.php

Código PHP:
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO?>" />

<link href="<?php echo $this->baseurl?>/templates/<?php echo $this->template?>/css/template.css" rel="stylesheet" type="text/css" />

<link rel="shortcut icon" href="<?php echo $this->baseurl?>/images/favicon.ico" />

<?php 
if($this->countModules("left")&&!$this->countModules("right")){ $contentwidth="left";}
if(
$this->countModules("right")&&!$this->countModules("left")){ $contentwidth="right";}
if(
$this->countModules("left")&&$this->countModules("right")) {$contentwidth="middle";}
if(
$this->countModules("user1")&&$this->countModules("user2")&&$this->countModules("user5")) {$userwidth="3";}
if(
$this->countModules("user1")&&$this->countModules("user2")&&!$this->countModules("user5")) {$userwidth="2";}
if(
$this->countModules("user1")&&!$this->countModules("user2")&&$this->countModules("user5")) {$userwidth="2";}
if(
$this->countModules("user2")&&!$this->countModules("user1")&&$this->countModules("user5")) {$userwidth="2";}
if(
$this->countModules("user1")&&!$this->countModules("user2")&&!$this->countModules("user5")) {$userwidth="1";}
if(
$this->countModules("user2")&&!$this->countModules("user1")&&!$this->countModules("user5")) {$userwidth="1";}
if(
$this->countModules("user5")&&!$this->countModules("user1")&&!$this->countModules("user2")) {$userwidth="1";}
?>

<style type="text/css">
    #container { width: <?php echo $template_width?>;}
    #banner { height: <?php echo $banner_height?>px;}
    #user_out { height: <?php echo $user123_height?>px; }
    #user_out .topmodule_user, #user_out .topmodule_user1, #user_out .topmodule_user2, #user_out .topmodule_user3 {
    height: <?php echo $user123_height?>px; }
    .sep, .sep1, .sep2, .sep3 { height: <?php echo $user123_height?>px; }
</style>
Index.php

Código PHP:
<?php 
defined
'_JEXEC' ) or die( 'Restricted access' );

    
$template_width                       $this->params->get("templateWidth""898px");
    
$banner_height                       $this->params->get("bannerheight""140");
    
$user123_height                        $this->params->get("user123_height""140");
                                
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "h**p://ww*.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="h**p://ww*.w3.org/1999/xhtml" xml:lang="<?php echo $this->language?>" lang="<?php echo $this->language?>" >

<head>

<jdoc:include type="head" />

<?php require("head_includes.php"); ?>

</head>

<body>
<div id="middle">
<div id="container">
<div id="header">
<div id="logoarea">
                <div id="logo"></div>
</div>
            <div id="rightheader">
               <div id="top">
                   <div id="sitename"><?php echo $mainframe->getCfg('sitename');?></div>
                <div id="user4"><jdoc:include type="modules" name="user4" style="xhtml" /></div>
            </div>
            <div id="topmenu_out">
                <div id="topmenu"><jdoc:include type="modules" name="user3" style="xhtml" /></div>
            </div>
            <div class="clear"></div>
            </div>
        </div>
        <div id="banner"></div>
        <div id="maincontent">
            <?php if($this->countModules('left')) : ?>
            <div id="left_out<?php echo $contentwidth?>">
                <div id="left"><jdoc:include type="modules" name="left" style="xhtml" /></div>
            </div>
            <?php endif; ?>
            <?php if($this->countModules('right')) : ?>
            <div id="right_out<?php echo $contentwidth?>">
                <div id="right"><jdoc:include type="modules" name="right" style="xhtml" /></div>
            </div>
            <?php endif; ?>
            <div id="content_out<?php echo $contentwidth?>">
                <div id="pathway"><jdoc:include type="module" name="breadcrumbs" /></div>
                <?php if($this->countModules('banner')) : ?>
                <div id="bannermodul"><jdoc:include type="modules" name="banner" style="xhtml" /></div>
                <?php endif; ?>
                <div id="content">
                <?php if($this->params->get('showComponent')) : ?>
                <jdoc:include type="component" />
                <?php endif; ?></div>
            </div>
        </div>
        <div class="clear"></div>
        <?php if($this->countModules('user1') or $this->countModules('user2') or $this->countModules('user5')) : ?>
        <div id="user_out">
            <?php if($this->countModules('user1')) : ?>......[B][COLOR="Red"]etc[/COLOR][/B]
os repito lo que quiero, quiero cambiar el banner.jpg que esta dentro de un archivo "template.css" reemplazarlo por una animacion flash. pero no he podido, gracias a todos.