Archivio
Sponsorize!
-
Articoli recenti
Argomenti
- CMS (22)
- Flash (11)
- Formazione (14)
- glossario (3)
- Hardware (9)
- Javascript (20)
- jQuery (13)
- Layouts (1)
- Linux (1)
- PHP (5)
- Progettazione (53)
- CSS (18)
- Ergonomia&Usabilità (1)
- Risorse (15)
- SEO & SEM (22)
- Software (12)
- Tecnogadget (2)
- video (1)
- web2.0 (39)
Twitter- Squishy #Light Spheres: Infectious is a light concept made up of modular silicone… http://goo.gl/fb/9gJ0 #design 16 mar 10
- Massive Agricultural Urbanism: One of the biggest challenges in #architecture is to… http://goo.gl/fb/jqeb #design 16 mar 10
- Relish The Sound Of Silence: The hectic fast-pace life that we lead makes us… http://goo.gl/fb/hHvX #design 16 mar 10
- Scrivere usando il cervello, facile con 9 mila euro http://bit.ly/cEaVL4 16 mar 10
- Replacing Candle-lit Dinners With #Firefly: The Firefly #Table is honestly a very neat… http://goo.gl/fb/4I20 #design 16 mar 10
- Google, buzz sull'onda delle novita' http://short.to/1mzd8 16 mar 10
- The #Underwear Washing Machine: Reusing water is what’s best for underwear. And if you… http://goo.gl/fb/PYwK #design 16 mar 10
- Twitter è @anywhere http://short.to/1mjy0 16 mar 10
- Se Google fugge Baidu vola http://short.to/1lrdy 16 mar 10
- Like a Fantasy for Bottles: It is just like it. Like a fantasy. For bottles. It’s the… http://goo.gl/fb/VryE #design 16 mar 10
Tag
actionscript ajax blog browser casual game CMS CSS del.icio.us design eeepc estensioni firefox Flash Formazione framework freeware Gallery google guida howto icone inspiration Javascript Joomla jQuery js lista mestre mobile PHP plugin Progettazione Risorse script seo social network sviluppo swf tool tutorial web 2.0 web application webdesign Wordpress xhtml




swfIR – swf Image Replacement
Swf Image Replacement
Questa tecnica parente della più famosa sIFR ci permette di manipolare liberamente la visualizzazione delle immagini sostituendo via javascript l’immagine con una sua versione in flash…
Questo ci fornisce una serie di vantaggi:
Ora vediamo brevemente come implementare il tutto:
[/js]
window.onload = function()
{
var sir = new swfir();
sir.specify(”border-width”, “20″);
sir.specify(”border-color”, “F57F20″);
sir.specify(’rotate’, ‘-2′);
sir.specify(”background-color”, “9dcee0″);
sir.specify(”shadow-blur”, “20″);
sir.swap(”.esempio img”);
}
[/js]
In questo esempio ho creato una nuova istanza dell’oggetto swfir di nome sirper la quale ho settato la dimensione del bordo, il suo colore, una rotazione dell’immagine di 2 gradi in senso antiorario, un colore di sfondo (per l’ombra) e la dimensione dell’ombra.
Con sir.swap(”.esempio img”) ho sostituito tutte le immagini contenute in un div con classe “esempio”.
Qui potete visualizzare l’esempio d’uso dell’swfir
Questi sono tutti i parametri su cui potete operare: