sobota, 23 października 2010

MooTools w pigułce cz. II

MooTools w pigułce cz. II: "
Zaczynamy II i ostatnią część artykułu “MooTools w pigułce”. Zacznijmy od dobrodziejstw dla OOP, jakie oferuje MooTools.
var Cat = new Class({
   initialize: function(name) {
       this.name = name;
   }
});

var myCat = new Cat('Micia');
alert(myCat.name); // 'Micia'

Retuszować każdy może

Nie każda fotografia zachwyca na pierwszy rzut oka. Zbyt duży lub za mały kontrast, mało wyraziste kolory, irytujące szczegóły psują cały efekt.
Olśniewające efekty można uzyskać również za pomocą bezpłatnego oprogramowania, np. opensource'owej aplikacji GIMP (gimp-win.sourceforge.net, rozmiar pliku: 14,4 MB).

piątek, 22 października 2010

Parent Selectors in CSS

Parent Selectors in CSS: "
Let’s be clear here, just in case someone is finding this from a search engine: there are no parent selectors in CSS, not even in CSS3. It is an interesting topic to talk about though, and some fresh talk has surfaced.

a < img { border: none; }

a img:parent { background: none; }"