AnythingSlider와 함께 작업하고 예제 페이지의 작동 방식과 완전히 동일하게 수행합니다. 단, 예제 페이지가 작동하고 있고, 제 방식은 다릅니다.jQuery AnythingSlider 플러그인이 데모에 표시된 예제처럼 작동하지 않습니다.
'복제 된'클래스가 포함 된 <li>
태그를 추가로 생성하기 때문에 스크립트가 적어도 실행되고 있음을 알고 있지만 아무 것도 움직이지 않습니다. 문서의 HEAD에
자바 스크립트 :
$(function() {
$('#slider').anythingSlider({
easing: "swing", // Anything other than "linear" or "swing"
// requires the easing plugin
autoPlay: true, // turns off the entire FUNCTIONALitY
startStopped: false, // force it to start stopped if autoplay is on
delay: 3000, // time between slide transitions in AutoPlay
animationTime: 600, // time the slide transition takes
hashTags: true, // Should links change the hashtag in the URL?
buildNavigation: false, // if true builds and
// list of anchor links to link to each slide
pauseOnHover: false, // pause on hover if true and autoPlay enabled
startText: "Start", // Start text
stopText: "Stop", // Stop text
navigationFormatter: null // Details at the top of the file on this use
});
});
(jQuery and the plugin are externally called)
html로
<div class="container_16 slider" id="slider">
<div class="wrapper">
<ul>
<li>
<?php echo html::image('resources/images/featuredweb.gif', array('alt' => ' ', 'class' => 'slider-icon')); ?>
<?php echo html::image('resources/images/website.gif', array('alt' => ' ', 'class' => 'imgborder')); ?>
<div class="content">
<h3>D'Portfolio Theme</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque massa tortor, fermentum ut pellentesque eu, mollis vitae lectus. </p>
<strong>Client Name : john doe</strong><br />
<strong>Requirement : php/Mysql/Adobe/CSS</strong><br />
</div>
</li>
<li>
<?php echo html::image('resources/images/featuredweb.gif', array('alt' => ' ', 'class' => 'slider-icon')); ?>
<?php echo html::image('resources/images/website.gif', array('alt' => ' ', 'class' => 'imgborder')); ?>
<div class="content">
<h3>D'Portfolio Theme</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque massa tortor, fermentum ut pellentesque eu, mollis vitae lectus. </p>
<strong>Client Name : john doe</strong><br />
<strong>Requirement : php/Mysql/Adobe/CSS</strong><br />
</div>
</li>
<li>
<?php echo html::image('resources/images/featuredweb.gif', array('alt' => ' ', 'class' => 'slider-icon')); ?>
<?php echo html::image('resources/images/website.gif', array('alt' => ' ', 'class' => 'imgborder')); ?>
<div class="content">
<h3>D'Portfolio Theme</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque massa tortor, fermentum ut pellentesque eu, mollis vitae lectus. </p>
<strong>Client Name : john doe</strong><br />
<strong>Requirement : php/Mysql/Adobe/CSS</strong><br />
</div>
</li>
</ul>
</div>
</div>
플러그인 예제 페이지는 여기에 있습니다 : http://css-tricks.com/examples/AnythingSlider/
나는 여기에 내 머리를 찢어하고 있습니다.
파슬리가 잘못되었습니다. 간단히 여기에 코드를 게시하십시오. 각 줄마다 4 칸씩 들여 쓰십시오. –
pastie가 유효합니다. 나는 약간의 코드가 있기 때문에 거기에 게시했다. –
은 유효합니다. pastie는 이전에 그것이 존재하지 않는다고 말했다. 기묘한. 어쨌든, pastie가 파산하거나 그들의 자료를 잃는 경우에,이 질문은 무의미해진다. 질문에 코드를 포함시키는 것이 좋습니다. –