Deprecated: Assigning the return value of new by reference is deprecated in /home/tudiro/public_html/wp-settings.php on line 472

Deprecated: Assigning the return value of new by reference is deprecated in /home/tudiro/public_html/wp-settings.php on line 487

Deprecated: Assigning the return value of new by reference is deprecated in /home/tudiro/public_html/wp-settings.php on line 494

Deprecated: Assigning the return value of new by reference is deprecated in /home/tudiro/public_html/wp-settings.php on line 530

Deprecated: Assigning the return value of new by reference is deprecated in /home/tudiro/public_html/wp-includes/cache.php on line 103

Deprecated: Assigning the return value of new by reference is deprecated in /home/tudiro/public_html/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /home/tudiro/public_html/wp-includes/theme.php on line 623
Efect | Tudi.ro

Tutorial Javascript/CSS: Fade pe poze

Stau de ceva vreme cu “Design” in titlu si in tagline, dar pana acum n-am prea scris nimic in sensul asta. De fapt, pentru ca sunt doar un designer amator, o sa ma limitez probabil in sectiunea asta sa scriu mici tutoriale grafice, hackuri de CSS/Javascript si Flash. Pentru inceput am un hack CSS/JS, pe care l-am si implementat pe site (butoanele alea sexy de la sfarsitul postului): cum sa creezi un efect de fade-in/fade-out pe o poza, la hover.

Ok, hai sa iau pe post de cobai o poza cu moaca mea:

Pasul 1 – Javascript

Daca aveti deja un fisier Javascript extern pe blog, puteti sa copiati functiile de mai jos acolo, dar daca nu, creati un fisier .js, sa ii zicem effects.js, si dati copy/paste la codul de mai jos:   More…