我正在使用來自jsmovie的插件。 它有一個像jquery事件處理如何使用
$('.movie').jsMovie({
images : ['loader_ani4x4.png'],
folder : 'pic/loader/',
height : 40, width: 40,
grid : {height:40, width:40, columns:4, rows:4},
showPreLoader : false,
playOnLoad : true
});
基本用法和像
* play - is triggered when the movie starts playing
* pause - is triggered when the movie pauses
* stop - is triggered when the movie stops
* ended - is triggered when a clip played its last frame
* playing - is triggered when the movie enters a frame
* loaded - is triggered when the movie has finished its loading process
* verbose - is triggered when the movie outputs a verbose, the callback has an extra argument like function(e,output){} which contains the text
事件如何使用打事件?
我試過這樣可是不行的
$('#movie').jsMovie.playing(function(v){
console.log();
});
你有一個的jsfiddle或類似的,你可以展示的代碼? –
Thouse是事件,而不是方法 –
那麼,電影是CLASS還是一個ID或兩者兼而有之? –