🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.javascript
1 messages
1 total messages Started by Jacek D. Thu, 21 Apr 2011 13:02
mootools skrypt z wersji 1.2 do 1.1
#50729
Author: Jacek D.
Date: Thu, 21 Apr 2011 13:02
38 lines
1926 bytes
Witam, z niewiedzy wysłałem to pytanie na grupę o php, nie wiedziałem, że
ta istnieje :)

Mam skrypt, który działa prawidłowo pod mootools w wersji 1.2 i
wyższej. A ja potrzebuję, żeby to działało z wersją 1.1 jeszcze. Skrypt
wygląda tak:

    window.addEvent('domready', function(){
        //First Example
        var el = $$('.fadehover .a');
     
        // We are setting the opacity of the element to 0.5 and adding two
events
        el.set('opacity', 0.01).addEvents({
            mouseenter: function(){
                // This morphes the opacity
                this.morph({
                    'opacity': 1,
                });
            },
            mouseleave: function(){
                // Morphes back to the original style
                this.morph({
                    'opacity': 0.01,
                });
            }
        });
     
    });

wiem, że el.set(opacity) powinno być zmienione na setOpacity(1) ale co z
morphes i funkcją? Z tego, co wyczytałem, to chyba w starszej wersji nie
było morph tylko np. el.Styles ale pewien nie jestem, może ktoś się w tym
orientuje?

-- 
Pozdrawiam, 
Jacek D. [priv = lp<>pl]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads