Joomla.it Forum
Joomla! 1.5.x (versione con supporto terminato) => Joomla! 1.5 => : Guybrush79 07 Jul 2008, 23:30:12
-
Ciao a tutti. Scrivo per avere un aiuto visto che non so più che pesci prendere! Sono 4 giorni che sto sbattendo la testa su un filmato iin swf che vorrei inserire nell'header del mio sito con template di default "rhuk_milkyway". Ho eliminato l'immagine del logo joomla che appare sulla sinistra cancellandola dalla cartella images all'interno del template.Ho eliminato anche le scritte sulla destra ed ora ho il mio spazio libero.
Ho inserito questo codice nell'index.php del template
<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" height="78" width="730" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param value="prova.swf" name="movie" /><param value="high" name="quality" /><param value="#ffffff" name="bgcolor" />
<EMBED
src="/prova.swf"
quality=high bgcolor=#ffffff WIDTH="730" HEIGHT="78"
ALIGN="left" TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</object>
dove prova.swf è il nome del mio banner in flash e il maledetto salta fuori abbastanza centrato in verticale ma completamente spostato a destra in orizzontale. Ho letto decine e decine di vecchi post, guide ecc... ma non ho risolto nulla. Se non riesco a trovare aiuto qua rinuncio. Metto un'immagine jpg (che sarà dura mettere pure quella) e mi accontento.
Grazie e Buona serata!
-
magari posta un link, cmq div align=center nn funziona?
-
Ciao. Ho tentato anche con l'Align su center ma non succede nulla. Rimane sempre spostato il tutto.
Allego sotto un'immagine ritagliata della mia home page dove appare l'header.
(http://i124.photobucket.com/albums/p8/Giovy79/Immagine-1.jpg)
Thanks!
-
cosi, credo che il div che contiene il tutto abbia larghezza limitata.
se metti align=left si centra il tutto?
-
Cosi come ho fatto lo screenshot dell'immagine è settato su Align "Left". Lo puoi vedere anche dal codice che ho copiato e incollato nel primo messaggio.
Sembra che ci sia qualcosa che riduce lo spazio.
Posso anche copiare qua sotto l'intero codice dell'index.php all'interno del template:
<?php
/**
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/css/<?php echo $this->params->get('colorVariation'); ?>.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/css/<?php echo $this->params->get('backgroundVariation'); ?>_bg.css" type="text/css" />
<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
<![endif]-->
<?php if($this->direction == 'rtl') : ?>
<link href="<?php echo $this->baseurl ?>/templates/rhuk_milkyway/css/template_rtl.css" rel="stylesheet" type="text/css" />
<?php endif; ?>
</head>
<body id="page_bg" class="color_<?php echo $this->params->get('colorVariation'); ?> bg_<?php echo $this->params->get('backgroundVariation'); ?> width_<?php echo $this->params->get('widthStyle'); ?>">
<a name="up" id="up">[/url]
<div class="center" align="center">
<div id="wrapper">
<div id="wrapper_r">
<div id="header">
<div id="header_l">
<div id="header_r">
<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" height="78" width="730" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param value="prova.swf" name="movie" /><param value="high" name="quality" /><param value="#ffffff" name="bgcolor" />
<EMBED
src="/prova.swf"
quality=high bgcolor=#ffffff WIDTH="730" HEIGHT="78"
ALIGN="left" TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</object>
<div id="logo"></div>
<jdoc:include type="modules" name="top" />
</div>
</div>
</div>
<div id="tabarea">
<div id="tabarea_l">
<div id="tabarea_r">
<div id="tabmenu">
<table cellpadding="0" cellspacing="0" class="pill">
<tr>
<td class="pill_l"> </td>
<td class="pill_m">
<div id="pillmenu">
<jdoc:include type="modules" name="user3" />
</div>
</td>
<td class="pill_r"> </td>
</tr>
</table>
</div>
</div>
</div>
</div>
<div id="search">
<jdoc:include type="modules" name="user4" />
</div>
<div id="pathway">
<jdoc:include type="modules" name="breadcrumb" />
</div>
<div class="clr"></div>
<div id="whitebox">
<div id="whitebox_t">
<div id="whitebox_tl">
<div id="whitebox_tr"></div>
</div>
</div>
<div id="whitebox_m">
<div id="area">
<jdoc:include type="message" />
<div id="leftcolumn">
<?php if($this->countModules('left')) : ?>
<jdoc:include type="modules" name="left" style="rounded" />
<?php endif; ?>
</div>
<?php if($this->countModules('left')) : ?>
<div id="maincolumn">
<?php else: ?>
<div id="maincolumn_full">
<?php endif; ?>
<?php if($this->countModules('user1 or user2')) : ?>
<table class="nopad user1user2">
<tr valign="top">
<?php if($this->countModules('user1')) : ?>
<td>
<jdoc:include type="modules" name="user1" style="xhtml" />
</td>
<?php endif; ?>
<?php if($this->countModules('user1 and user2')) : ?>
<td class="greyline"> </td>
<?php endif; ?>
<?php if($this->countModules('user2')) : ?>
<td>
<jdoc:include type="modules" name="user2" style="xhtml" />
</td>
<?php endif; ?>
</tr>
</table>
<div id="maindivider"></div>
<?php endif; ?>
<table class="nopad">
<tr valign="top">
<td>
<jdoc:include type="component" />
<jdoc:include type="modules" name="footer" style="xhtml"/>
</td>
<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<td class="greyline"> </td>
<td width="170">
<jdoc:include type="modules" name="right" style="xhtml"/>
</td>
<?php endif; ?>
</tr>
</table>
</div>
<div class="clr"></div>
</div>
<div class="clr"></div>
</div>
<div id="whitebox_b">
<div id="whitebox_bl">
<div id="whitebox_br"></div>
</div>
</div>
</div>
<div id="footerspacer"></div>
</div>
<div id="footer">
<div id="footer_l">
<div id="footer_r">
<p id="syndicate">
<jdoc:include type="modules" name="syndicate" />
</p>
<p id="power_by">
<?php echo JText::_('Powered by') ?> Joomla! (http://www.joomla.org).
<?php echo JText::_('Valid') ?> XHTML (http://validator.w3.org/check/referer) <?php echo JText::_('and') ?> CSS (http://jigsaw.w3.org/css-validator/check/referer).
</p>
</div>
</div>
</div>
</div>
</div>
<jdoc:include type="modules" name="debug" />
</body>
</html>
-
Evitiamo di copiare un index intero quando ci interessano solo 20 righe ;)
-
Pardon! ;)
Non lo faccio più! ::)
Ciao!
-
Pardon! ;)
Non lo faccio più! ::)
Ciao!
tranquillo ;)
-
non ti riesce perchè probabilemte il div "header_r" ha una impostazione nel css diversa.
devi inserire dopo quel div (non prima come hai fatto):
<div align="center">
<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" height="78" width="730" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param value="prova.swf" name="movie" /><param value="high" name="quality" /><param value="#ffffff" name="bgcolor" />
<EMBED
src="/prova.swf"
quality=high bgcolor=#ffffff WIDTH="730" HEIGHT="78"
ALIGN="left" TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</object>
</div>
-
E' possibile farti una domanda? Tipo: vorrei sapere se clikkando su una voce menu del tuo sito, il banner flash si ricarica da capo, non so se mi spiego bene..... perché é un problema che ho adesso, al quale stò cercando di dare una soluzione...
-
Ciao. Purtroppo anche spostando "<div align="center">" non sortisce nessun effetto.... :'(
Bo...non so più cosa fare!
Per la domanda di derizoe: Ti confermo che ad ogni cambio di pagina viene ricaricato il filmato. Ma al momento non mi da particolarmente fastidio...ho altro a cui far fronte! ;D ;D
Ciao!
-
posta il link
-
Ciao! Ravanando nelle impostazioni del file css come per magia il banner si è centrato! Nelle impostazioni head e logo ho inserito "center"..ho messo a posto i margini ed ora pare centrato. Ma devo ancora sistemare....vi tengo aggiornati!
Intanto grazie!