이 플러그인을 사용하고 있습니다. http://www.spritely.net/ 변수 $ 스프라이트가 다시 실행되지 않는 이유는 누구에게 말해 줄 수 있습니까?jquery spritefy 일시 중지 및 다시 시작
function animate_header() {
$('#header')
.sprite({
fps: 30,
no_of_frames: 4,
// the following are optional: new in version 0.6...
start_at_frame: 1,
rewind: false,
on_last_frame: function(obj) {
// you could stop the sprite here with, e.g.
obj.spStop();
}
})
.active();
}
var init = setInterval("animate_header()", 1000);
함수 자체가 매초 실행 :
function animate_header() {
var $sprite = $('#header')
.sprite({
fps: 30,
no_of_frames: 4,
// the following are optional: new in version 0.6...
start_at_frame: 1,
rewind: false,
on_last_frame: function(obj) {
// you could stop the sprite here with, e.g.
obj.spStop();
}
})
.active();
}
var init = setInterval("animate_header()", 1000);
는 또한이 시도. 그러나 스프라이트는 그렇지 않습니다.
수정을 파괴)? 나는 spritely의 방법으로 그것을 보지 않는다 (또는 jQuery 함수인가?). – orolo
죄송합니다. 표시됩니다. .destroy()를 호출하고 다시 실행 해 보았습니까? – orolo