나는 작동하도록 노력하고있어 실행할 수없는 이벤트 리스너가 있습니다. 나는 웹킷 변환을 촉구하는 div의 클래스를 전환하는 onclick을 설정했습니다. 전환이 끝나면 jquery가 div에 외부 페이지를로드하려고하지만로드하지 않습니다. 이것은 내가 설정 한 js입니다.은 작동하는 이벤트 리스너를 가져올 수 없습니다.
<script type="text/javascript">
function fullscreen_slider_load() {
var fullscreen = document.getElementById("fullscreen");
function fullscreen_done1() {
console.log("done called");
fullscreen.removeEventListener("webkitTransitionEnd", fullscreen_done1);
fullscreen.addEventListener("webkitTransitionEnd", fullscreen_done2);
$(function fullscreen_load() {
$('#fullscreen')
.html('<img src="http://www.klossal.com/loader.gif"/>')
.load('http://www.klossal.com/portfolio/space_fullscreen.html');
});
function fullscreen_done2() {
fullscreen.removeEventListener("webkitTransitionEnd", fullscreen_done2);
};
</script>
로드되지 않는 이유는 잘 모르겠지만,이 문제에 대해 도움을 얻을 수 있다면 도움이 될 것입니다.
음 ... 뭔가가 제대로 보이지 않습니다. 처음 두 함수의 닫는 중괄호는 어디에 있습니까? 함수 나 뭔가를 중첩 시키려고합니까? –