2 일 동안이 작업을 해왔습니다. Javascript/Jquery를 처음 사용하며 학습 과정에 있습니다.서로 계속되는 연속적인 이벤트 실행하기
페이지가로드 될 때 자바 스크립트를 만들려고하는데 이미지가 페이드 인되어 페이드 아웃되고 첫 번째 이미지가 페이드 인 및 페이드 아웃 한 후 두 번째, 세 번째 등등 필요한 많은 것들이 있습니다.
나는 이것이 newby 문제라는 것을 알고 있지만, 나는이 시점에서 무엇을 찾아야할지 분명히 확신하지 못했다. 그리고 나는 그 동안 연구와 학습을 해오 고 있으며, 내가 성취 할 수있는 것보다 빨리 그것을 갖고 싶습니다.
도움을 주시면 감사하겠습니다. 당신은 an array을 사용할 수 있으며 현재 이미지를 포함하는 변수가 다음에 그들을 페이드 아웃
<div class="splashbg1" style="display: none;"></div>
<div class="splashbg2" style="display: none;"></div>
<div class="splashbg3" style="display: none;"></div>
<div class="splashbg4" style="display: none;"></div>
<div class="splashbg5" style="display: none;"></div>
<script>
$(document).ready(function() {
$('.splashbg1').fadeIn(1300, function() {
$('.splashbg1').fadeOut(1300, function() {
$('.splashbg2').fadeIn(1300, function() {
$('.splashbg2').fadeOut(1300, function() {
$('.splashbg3').fadeIn(1300, function() {
$('.splashbg3').fadeOut(1300, function() {
$('.splashbg4').fadeIn(1300, function() {
$('.splashbg4').fadeOut(1300, function() {
$('.splashbg5').fadeIn(1300, function() {
});
});
});
});
});
});
});
});
});
});
</script>
welcome to stackoverflow 특정 문제를 지적 할 수 있도록 html과 코드를 게시 할 수 있습니까? – mcgrailm
배우고 싶다면; 미니 텍은 아름다운 대답을 가지고 있습니다. 프로덕션이나 사용을 위해 제품이 필요한 경우 jQuery 용 기존 플러그인을 사용해보십시오. 검색어는 'jQuery 회전 목마'입니다. http://www.agilecarousel.com/flavor_2.htm – rkw