Imagine care clipeste

In jos

Imagine care clipeste

Mesaj Scris de xCrazy la data de Vin Apr 23, 2010 9:05 pm

Imagine care clipeste

inlocuiti IMAGINE cu URL-ul link al imaginii si modifica width=116 height=123 dupa rezolutia imaginii

Cod:
<img id="test" src="IMAGINE" width=116 height=123 style="-moz-opacity:0.3" />

<script type="text/javascript">

opacity=0 //opacity of image
var increase=1 //increase opacity indicator
var decrease=0 //decrease opacity indicator

function fade(){
if (opacity<0.6&&increase)
opacity+=0.05
else{
increase=0
decrease=1
}

if (opacity>0.3&&decrease)
opacity-=0.05
else{
increase=1
decrease=0
}

document.getElementById("test").style.MozOpacity=opacity
}

if (document.getElementById("test") && document.getElementById("test").style.MozOpacity) //if Firefox/ NS6+
setInterval("fade()",100)
</script>
avatar
xCrazy
Administrator
Administrator

Versiune :

Mesaje : 317
Yang : 903324348
Reputatie : 36004
Data de inscriere : 06/04/2010
Varsta : 26
Localizare : Sibiu

Vezi profilul utilizatorului http://viparena.forumz.ro

Sus In jos

Sus

- Subiecte similare

 
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum