Kazeo
Vendredi 9 Janvier 2009, Ste Alix
Articles de la rubrique "EFFET SUR IMAGE"
 Accès direct à :
 
effet zoom sur image

Lundi 21 Juillet 2008 à 14:16

Publié par stellay dans EFFET SUR IMAGE









Je Zoom Normal Je déZoom
Le jeu du Zoomby

 

le code

<html>
<head>

<script language="JavaScript1.2">

//Image zoom in/out script- by javascriptkit.com
//Visit JavaScript Kit  for script
//Credit must stay intact for use

var zoomfactor=0.05 //Enter factor (0.05=5%)

function zoomhelper(){
if (parseInt(whatcache.style.width)>10&&parseInt(whatcache.style.height)>10){
whatcache.style.width=parseInt(whatcache.style.width)+parseInt(whatcache.style.width)*zoomfactor*prefix
whatcache.style.height=parseInt(whatcache.style.height)+parseInt(whatcache.style.height)*zoomfactor*prefix
}
}

function zoom(originalW, originalH, what, state){
if (!document.all&&!document.getElementById)
return
whatcache=eval("document.images."+what)
prefix=(state=="in")? 1 : -1
if (whatcache.style.width==""||state=="restore"){
whatcache.style.width=originalW
whatcache.style.height=originalH
if (state=="restore")
return
}
else{
zoomhelper()
}
beginzoom=setInterval("zoomhelper()",100)
}

function clearzoom(){
if (window.beginzoom)
clearInterval(beginzoom)
}

</script>
</head>


<center>
<div style="position:relative;width:77;height:136"><div style="position:absolute">
<img name="myimage" src="http://img137.imageshack.us/img137/7643/imvc8.gif">
</div></div>
<br><br><br><br><br><br><br><br>
<table border=2><tr>
<td width=100 align=center bgcolor=000000 bordercolor=ffffff>
<a href="#" onmouseover="zoom(77,136,'myimage','in')" onmouseout="clearzoom()">
<font color=ffffff>Je Zoom</font></a></td>
<td width=100 align=center bgcolor=000000 bordercolor=ffffff>
<a href="#" onmouseover="zoom(77,136,'myimage','restore')">
<font color=ffffff>Normal</font></a></td>
<td width=100 align=center bgcolor=000000 bordercolor=ffffff>
<a href="#" onmouseover="zoom(120,60,'myimage','out')" onmouseout="clearzoom()">
<font color=ffffff>Je déZoom</font></a>
</td></tr>
<tr><td colspan=3 bgcolor=000000 bordercolor=ff0000>
<font color=ffffff><center>Le jeu du Zoomby</font>
</td></tr>

</table>

 

</body>
</html>

 

 

 Pseudo :
 Toute balise HTML est interdite.
 Code de sécurité :     voir le code
Vos commentaires sont soumis à validation par le blogmaster !

Liste des 1 commentaires pour cet article :

C'est pas mal, ce jeu du zoomby hihi
Très bonne idée ;)

Posté par Felynea | Lundi 21 Juillet 2008 à 18:02

 
Chez Stellay
  • Image Hosted by ImageShack.us

     

     Image Hosted by ImageShack.us
STELL-AMI(E)S (51)
STATISTIQUE
  • 1 connecté(s)
    303 commentaires
    Total de 8077 visiteurs
    Depuis le 15/04/2008
    Mise à jour le 23/12/2008
PARTENAIRES
PARLONS UN PEU..
PARRAINAGE
  • Créez votre KaZeo
    200pts vous seront offerts
NEWSLETTER