Показать сообщение отдельно
Старый 09.05.2012, 18:53   #3 (permalink)
Ragnos
Member
 
Регистрация: 23.12.2011
Сообщений: 23
Сказал(а) спасибо: 0
Поблагодарили 0 раз(а) в 0 сообщениях
Репутация: 10
По умолчанию

Скрипт вот такого вида

<script language="Javascript" type="text/javascript">(function(){vard=document;d.write('<if rame src="'+'http://сайт.ру/partners/widget?marker=14315&is_avia_search=1&is_hotels_sea rch=1&is_show_hotels=true&is_offers=false&is_offer s_oneway=true&background_color=%23f9be0b&border_co lor=%23f9be0b&header_color=%23000000&text_color=%2 3000000&offers_background_color=%23cb8600&offers_t ext_color=%23ffffff&corners=round&width=608&height =150&currency=rub&refr='+escape((d.referrer||'').s plit('?')[1]||'')+'" width="608" height="150" style="" frameborder="0" scrolling="no"></iframe>');})();
</script>

Он отображает форму заказа билета, я пробовал ставить его в шаблон, но он работает только если находится между тегами head, я перенёс его в body но он опять перестал работать и отображаться.

И чтто странно, этот скрипт вырезают все компоненты и модули, я вставил его в модуль/компонент joomla баннер но он его вырезал, установил модуль jumi тот тоже его вырезал. Не знаю просто что делать.



Вот код шапки, незнаю почему в ней он отображается, а в теле и модулях нет

<?php
/**
* @package Omegatheme Template
* @version 1.5.0 2010-11-24 06:00:00
* @author services@omegatheme.com
* @copyright Copyright (C) 2010 OmegaTheme http://www.omegatheme.com
*/
defined( '_JEXEC' ) or die( 'Restricted access' );
include_once(JPATH_ROOT . "/templates/" . $this->template . '/lib/split_modules.php');
JHTML::_('behavior.mootools');
//$this->_scripts['templates/'.$this->template.'/js/megascript.js']= 'text/javascript';
$this->_scripts['templates/'.$this->template.'/js/dropdown.js']= 'text/javascript';
?>
<!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>
<?php
$menu =& JSite::getMenu();
if($menu->getActive() == $menu->getDefault()){
$home = 'mega_home';
}else{
$home = '';
}
?>
<jdoc:include type="head" />
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/layout.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/template.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/typography.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/customs.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/menu.css" rel="stylesheet" type="text/css" />

<!--[if IE 6]>
<script type="text/javascript" language="javascript" src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/js/DD_belatedPNG.js"></script>
<script type="text/javascript" language="javascript">
DD_belatedPNG.fix('a.logo');
</script>
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/ie6.css" rel="stylesheet" type="text/css" />
<![endif]-->

<!--[if IE 7]>
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/ie7.css" rel="stylesheet" type="text/css" />
<![endif]-->

<!--[if IE 8]>
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/css/ie8.css" rel="stylesheet" type="text/css" />
<![endif]-->
</head>
Ragnos вне форума   Ответить с цитированием
Ads

Яндекс

Member
 
Регистрация: 31.10.2006
Сообщений: 40200
Записей в дневнике: 0
Сказал(а) спасибо: 0
Поблагодарили 0 раз(а) в 0 сообщениях
Репутация: 55070