2014-09-17 2 views
0

jQuery 프로그래밍을 처음 사용하고 페이드 효과 후에 페이지 변경 사항을 해결하려고합니다. 콜백 메소드를 사용하는 것으로 들었습니다. 그러나 사용법을 알려주지 마십시오. "Scene2.html"은 내가 옮기고 싶은 곳입니다.fadeOut 이후의 페이지 이동

enter code here 
<!DOCTYPE html> 
<html> 
<head> 
<meta charset="UTF-8"> 
<title>Insert title here</title> 
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> 
<script type="text/javascript"> 
jQuery(function(){ 
$("#first").fadeOut(1500); 
}); 

</script> 

</head> 
<body> 
<img id="first" src="images/Logop.jpg"/> 
</body> 
</html> 
+0

이 문서를 읽기를 ... http://api.jquery.com/fadeOut/ –

+0

'는 한 번만 – AvrilAlejandro

답변

0

당신은 그것을 이런 식으로 할 거라고 :

jQuery(function(){ 
 
$("#first").fadeOut(1500, function() { 
 
\t window.location.href = 'Scene2.html'; 
 
    }); 
 
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> 
 

 
<img id="first" src="http://cdn.hark.com/images/000/003/249/3249/original.jpg">

+0

실행 fadeOut' 당신의 도움을 주셔서 감사합니다!!!!! – young