I need help enhancing this Gallery (tutorialdog.com/javascript-image-gallery-using-mootools/), I ve tried on my own (I m new to js programming), But I haven t figure it out how to code it right resulting to the effect that I want. I ve tried chaining the opacity but I wasn t successful.
这里的法典
window.addEvent( domready , function() {
var drop = $( large );
var dropFx = drop.effect( background-color , {wait: false});
$$( .item ).each(function(item){
item.addEvent( click , function(e) {
drop.removeEvents();
drop.empty();
var a = item.clone();
a.inject(drop);
dropFx.start( 7389AE ).chain(dropFx.start.pass( ffffff , dropFx));
});
});
});
从根本上讲,我希望在被点击之后,对大的预约增加影响。
感谢!