Witam odgrzeje temat, mam joomla 1,7 i widze że niby działa ten sposób bo się wczytują artykuły z animacją natomiast top strony się też odświeża a zależy mi żeby się nie odświeżał ponieważ w topie jest odtwarzacz muzyki i po przejściu w menu do innego artykułu muzyka odtwarza się na nowo.
tutaj kod z index.php
Kod HTML:
<?php
/**
* @version $Id: index.php 21518 2011-06-10 21:38:12Z chdemko $
* @package Joomla.Site
* @subpackage Templates.beez_20
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access.
defined('_JEXEC') or die;
// check modules
$showRightColumn = ($this->countModules('position-3') or $this->countModules('position-6') or $this->countModules('position-8'));
$showbottom = ($this->countModules('position-9') or $this->countModules('position-10') or $this->countModules('position-11'));
$showleft = ($this->countModules('position-4') or $this->countModules('position-7') or $this->countModules('position-5'));
if ($showRightColumn==0 and $showleft==0) {
$showno = 0;
}
JHtml::_('behavior.framework', true);
// get params
$color = $this->params->get('templatecolor');
$logo = $this->params->get('logo');
$navposition = $this->params->get('navposition');
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$templateparams = $app->getTemplate(true)->params;
$doc->addScript($this->baseurl.'/templates/beez_20/javascript/md_stylechanger.js', 'text/javascript', true);
?>
<!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; ?>" dir="<?php echo $this->direction; ?>" >
<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/<?php echo $this->template ?>/css/layout.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/style.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/960.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/reset.css" type="text/css" />
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/script/mootools-fluid16-autoselect.js" type="text/javascript"></script>
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/script/mootools-1.2-more.js" type="text/javascript"></script>
<link href='http://fonts.googleapis.com/css?family=Pinyon+Script' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Marck+Script&subset=latin,latin-ext,cyrillic' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/audio/audio-player.js"></script>
<script type="text/javascript">
AudioPlayer.setup("http://www./templates/portfolio/audio/player.swf", {
width: 85,
transparentpagebg: "yes",
autostart: "yes"
});
</script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/script/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/script/custom.js"></script>
</head>
<body>
<div id="top">
<div id="menu" class="container_16">
<div id="logo" class="grid_5 "></div>
<div id="muzyka" class="grid_2 ">
<div id="audioplayer_1">Alternative content</div>
<script type="text/javascript">
AudioPlayer.embed("audioplayer_1", {soundFile: "http://www."});
</script>
</div>
<div align="right" id="menu-bar" class="grid_8 "><jdoc:include type="modules" name="menu" style="xhtml"/></div></div>
<div id="content-layout">
<div id="content" class="container_16">
<div><jdoc:include type="component" style="table"/></div>
<div class="clear"></div>
<div align="center" id="modul"><div id="slider"><jdoc:include type="modules" name="slider" /></div></div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
<div id="footer-layout">
<div id="footer" class="container_12">
<img src="images/logo-male.png" alt="fotografia" style="float:left; padding-right:5px;">
<div id="footer-text">
<div class="grid_5 alpha"><span id="copy"> Portfolio © 2011 │ Wszelkie prawa zastrzeżone.</span></div>
<div class="grid_2"></div>
<div class="grid_3 omega"><span id="power"><a href="">Projekt i wykonanie </a></span></div>
</div>
</div>
</div>
<jdoc:include type="modules" name="debug" />
</body>
</html>