Jump to content

Recommended Posts

слайд не пашет
сразу предупреждаю я пытаюсь его вставить в главную страницу в описание. в режиме редактора страницы в админ панели

<link href="/f/css/skitter.styles.css" type="text/css" media="all" rel="stylesheet" />	<link href="/f/css/highlight.black.css" type="text/css" media="all" rel="stylesheet" />	<script src="/f/js/jquery-1.6.3.min.js"></script>	<script src="/f/js/jquery.easing.1.3.js"></script>	<script src="/f/js/jquery.animate-colors-min.js"></script>	<script src="/f/js/jquery.skitter.min.js"></script>	<script>	$(document).ready(function() {				var options = {};			if (document.location.search) {			var array = document.location.search.split('=');			var param = array[0].replace('?', '');			var value = array[1];						if (param == 'animation') {				options.animation = value;			}			else if (param == 'type_navigation') {				if (value == 'dots_preview') {					$('.border_box').css({'marginBottom': '40px'});					options['dots'] = true;					options['preview'] = true;				}				else {					options[value] = true;					if (value == 'dots') $('.border_box').css({'marginBottom': '40px'});				}			}		}				$('.box_skitter_large').skitter(options);				// Highlight		$('pre.code').highlight({source:1, zebra:1, indent:'space', list:'ol'});			});	</script></head><body>		<div id="content">		<div class="border_box">			<div class="box_skitter box_skitter_large">				<ul>					<li><a href="#cube"><img src="/f/images/001.jpg" class="cube" /></a><div class="label_text"><p>cube</p></div></li>					<li><a href="#cubeRandom"><img src="/f/images/002.jpg" class="cubeRandom" /></a><div class="label_text"><p>cubeRandom</p></div></li>					<li><a href="#block"><img src="/f/images/003.jpg" class="block" /></a><div class="label_text"><p>block</p></div></li>					<li><a href="#cubeStop"><img src="/f/images/004.jpg" class="cubeStop" /></a><div class="label_text"><p>cubeStop</p></div></li>					<li><a href="#cubeHide"><img src="/f/images/005.jpg" class="cubeHide" /></a><div class="label_text"><p>cubeHide</p></div></li>					<li><a href="#cubeSize"><img src="/f/images/006.jpg" class="cubeSize" /></a><div class="label_text"><p>cubeSize</p></div></li>					<li><a href="#horizontal"><img src="/f/images/007.jpg" class="horizontal" /></a><div class="label_text"><p>horizontal</p></div></li>					<li><a href="#showBars"><img src="f/images/008.jpg" class="showBars" /></a><div class="label_text"><p>showBars</p></div></li>					<li><a href="#showBarsRandom"><img src="/f/images/009.jpg" class="showBarsRandom" /></a><div class="label_text"><p>showBarsRandom</p></div></li>					<li><a href="#tube"><img src="/f/images/010.jpg" class="tube" /></a><div class="label_text"><p>tube</p></div></li>					<li><a href="#fade"><img src="/f/images/011.jpg" class="fade" /></a><div class="label_text"><p>fade</p></div></li>					<li><a href="#fadeFour"><img src="/f/images/012.jpg" class="fadeFour" /></a><div class="label_text"><p>fadeFour</p></div></li>					<li><a href="#paralell"><img src="/f/images/013.jpg" class="paralell" /></a><div class="label_text"><p>paralell</p></div></li>					<li><a href="#blind"><img src="/f/images/014.jpg" class="blind" /></a><div class="label_text"><p>blind</p></div></li>					<li><a href="#blindHeight"><img src="/f/images/015.jpg" class="blindHeight" /></a><div class="label_text"><p>blindHeight</p></div></li>					<li><a href="#blindWidth"><img src="/f/images/016.jpg" class="blindWidth" /></a><div class="label_text"><p>blindWidth</p></div></li>					<li><a href="#directionTop"><img src="/f/images/017.jpg" class="directionTop" /></a><div class="label_text"><p>directionTop</p></div></li>					<li><a href="#directionBottom"><img src="/f/images/018.jpg" class="directionBottom" /></a><div class="label_text"><p>directionBottom</p></div></li>					<li><a href="#directionRight"><img src="/f/images/019.jpg" class="directionRight" /></a><div class="label_text"><p>directionRight</p></div></li>					<li><a href="#directionLeft"><img src="/f/images/020.jpg" class="directionLeft" /></a><div class="label_text"><p>directionLeft</p></div></li>					<li><a href="#cubeStopRandom"><img src="/f/images/021.jpg" class="cubeStopRandom" /></a><div class="label_text"><p>cubeStopRandom</p></div></li>					<li><a href="#cubeSpread"><img src="/f/images/022.jpg" class="cubeSpread" /></a><div class="label_text"><p>cubeSpread</p></div></li>								</ul>			</div>		</div>
Link to post
Share on other sites

Во-первых: Зачем вставлять через редактор, вставляйте в шаблон Главной, во-вторых: зачем экранировать кавычки? Это же не РНР. В третьих: Какая Симпла? Если вторая, то подключать еще раз Джейквери не надо

Link to post
Share on other sites

И сразу вопрос, что такое /f/ в пути к файлам?

<link href=\"/f/css/skitter.styles.css\".....


замените на

<link href=\"design/{$settings->theme|escape}/css/skitter.styles.css\".....

и так во всех ссылках
Link to post
Share on other sites

вощем вот. думаю в стилях проблема

<link href="design/{$settings->theme|escape}/css/skitter.styles.css" type="text/css" media="all" rel="stylesheet"/> 
<link href="design/{$settings->theme|escape}/css/highlight.black.css" type="text/css" media="all" rel="stylesheet"/>

<script src="design/{$settings->theme|escape}/js/jquery-1.6.3.min.js" type="text/javascript"></script>
       <script src="design/{$settings->theme|escape}/js/jquery.easing.1.3.js" type="text/javascript"></script>
       <script src="design/{$settings->theme|escape}/js/jquery.animate-colors-min.js" type="text/javascript"></script>
       <script src="design/{$settings->theme|escape}/js/jquery.skitter.min.js" type="text/javascript"></script>



{literal}<script>	$(document).ready(function() {				var options = {};			if (document.location.search) {			var array = document.location.search.split('=');			var param = array[0].replace('?', '');			var value = array[1];						if (param == 'animation') {				options.animation = value;			}			else if (param == 'type_navigation') {				if (value == 'dots_preview') {					$('.border_box').css({'marginBottom': '40px'});					options['dots'] = true;					options['preview'] = true;				}				else {					options[value] = true;					if (value == 'dots') $('.border_box').css({'marginBottom': '40px'});				}			}		}				$('.box_skitter_large').skitter(options);				// Highlight		$('pre.code').highlight({source:1, zebra:1, indent:'space', list:'ol'});			});	</script>{/literal}                <div id="content">		<div class="border_box">			<div class="box_skitter box_skitter_large">				<ul>					<li><a href="#cube"><img src="design/{$settings->theme}/images/001.jpg" class="cube" /></a><div class="label_text"><p>cube</p></div></li>					<li><a href="#cubeRandom"><img src="design/{$settings->theme}/images/002.jpg" class="cubeRandom" /></a><div class="label_text"><p>cubeRandom</p></div></li>					<li><a href="#block"><img src="design/{$settings->theme}/images/003.jpg" class="block" /></a><div class="label_text"><p>block</p></div></li>					<li><a href="#cubeStop"><img src="design/{$settings->theme}/images/004.jpg" class="cubeStop" /></a><div class="label_text"><p>cubeStop</p></div></li>					<li><a href="#cubeHide"><img src="design/{$settings->theme}/images/005.jpg" class="cubeHide" /></a><div class="label_text"><p>cubeHide</p></div></li>					<li><a href="#cubeSize"><img src="design/{$settings->theme}/images/006.jpg" class="cubeSize" /></a><div class="label_text"><p>cubeSize</p></div></li>					<li><a href="#horizontal"><img src="design/{$settings->theme}/images/007.jpg" class="horizontal" /></a><div class="label_text"><p>horizontal</p></div></li>					<li><a href="#showBars"><img src="design/{$settings->theme}/images/008.jpg" class="showBars" /></a><div class="label_text"><p>showBars</p></div></li>					<li><a href="#showBarsRandom"><img src="design/{$settings->theme}/images/009.jpg" class="showBarsRandom" /></a><div class="label_text"><p>showBarsRandom</p></div></li>					<li><a href="#tube"><img src="design/{$settings->theme}/images/010.jpg" class="tube" /></a><div class="label_text"><p>tube</p></div></li>					<li><a href="#fade"><img src="design/{$settings->theme}/images/011.jpg" class="fade" /></a><div class="label_text"><p>fade</p></div></li>					<li><a href="#fadeFour"><img src="design/{$settings->theme}/images/012.jpg" class="fadeFour" /></a><div class="label_text"><p>fadeFour</p></div></li>					<li><a href="#paralell"><img src="design/{$settings->theme}/images/013.jpg" class="paralell" /></a><div class="label_text"><p>paralell</p></div></li>					<li><a href="#blind"><img src="design/{$settings->theme}/images/014.jpg" class="blind" /></a><div class="label_text"><p>blind</p></div></li>					<li><a href="#blindHeight"><img src="design/{$settings->theme}/images/015.jpg" class="blindHeight" /></a><div class="label_text"><p>blindHeight</p></div></li>					<li><a href="#blindWidth"><img src="design/{$settings->theme}/images/016.jpg" class="blindWidth" /></a><div class="label_text"><p>blindWidth</p></div></li>					<li><a href="#directionTop"><img src="design/{$settings->theme}/images/017.jpg" class="directionTop" /></a><div class="label_text"><p>directionTop</p></div></li>					<li><a href="#directionBottom"><img src="design/{$settings->theme}/images/018.jpg" class="directionBottom" /></a><div class="label_text"><p>directionBottom</p></div></li>					<li><a href="#directionRight"><img src="design/{$settings->theme}/images/019.jpg" class="directionRight" /></a><div class="label_text"><p>directionRight</p></div></li>					<li><a href="#directionLeft"><img src="design/{$settings->theme}/images/020.jpg" class="directionLeft" /></a><div class="label_text"><p>directionLeft</p></div></li>					<li><a href="#cubeStopRandom"><img src="design/{$settings->theme}/images/021.jpg" class="cubeStopRandom" /></a><div class="label_text"><p>cubeStopRandom</p></div></li>					<li><a href="#cubeSpread"><img src="design/{$settings->theme}/images/022.jpg" class="cubeSpread" /></a><div class="label_text"><p>cubeSpread</p></div></li>								</ul>			</div>		</div>
Link to post
Share on other sites
  • 3 weeks later...
  • 1 month later...

я вставил Nivo Slider в шапку.
на главной все работает, но когда я захожу на другие страницы крутиться загрузка в слайдере и все...
из-за чего это?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...