English 中文(简体)
助教、摩托勒斯歌舞形象
原标题:Code Help, Mootools fading image on the gallery

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));
            });
        });
    });

从根本上讲,我希望在被点击之后,对大的预约增加影响。

感谢!

问题回答

您只能做以下工作:drop.fade(>in”;,以影响整个大面积地区,或您可以做a.inject(drop).fade(in”); 仅能抹掉较大的形象。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签