Newsgroup: it.comp.lang.javascript
Titolo: Rollover con immagini

grazie 1000 x l'attenzione!
m.li...@tiscalinet.it

 ha scritto nel messaggio
news:93vf6m$h66$1...@lacerta.tiscalinet.it...

Riallinea le righe...............
<html>
<head>
<script language="JavaScript">
function ph(aa,bb,cc,dd,ee,jj,hh,ww,zz,yy,gg){
kk=new Array(aa,bb,cc,dd)
if(document.getElementById){
document.getElementById(ee).style.visibility=yy
document.getElementById(ee).style.top=hh
document.getElementById(ee).style.left=ww
for(i=0; i<4; i++){
quale=""+'aa'+kk[i]
quale2=""+'comm'+[jj]
document.getElementById(quale).style.visibility=gg
document.getElementById(quale2).style.visibility=zz
}
}
else if(document.all){
document.all[ee].style.visibility=yy
document.all[ee].style.pixelTop=hh
document.all[ee].style.pixelLeft=ww
for(i=0; i<4; i++){
quale=""+'aa'+kk[i]
quale2=""+'comm'+[jj]
document.all[quale].style.visibility=gg
document.all[quale2].style.visibility=zz
}
}
else if(document.layers){
document.layers[ee].visibility=yy
document.layers[ee].top=hh
document.layers[ee].left=ww
for(i=0; i<4; i++){
quale=""+'aa'+kk[i]
quale2=""+'comm'+[jj]
document.layers[quale].visibility=gg
document.layers[quale2].visibility=zz
}
}
}
</script>
</head>
<body bgcolor="#dddddd">
 <div id="aa0"
style="position:absolute;top:350;left:10;visibility:visible;">
 <a href="#"
onClick="ph(1,2,3,4,'aa0',0,50,200,'visible','visible','hidden')">
 <img border="0" src="images/BOTT1.gif" width="140" height="40"></a></div>
  <div id="aa1"
style="position:absolute;top:350;left:160;visibility:visible;">
 <a href="#"
onClick="ph(0,2,3,4,'aa1',1,50,200,'visible','visible','hidden')">
 <img border="0" src="images/BOTT10.gif" width="140" height="40"></a></div>
  <div id="aa2"
style="position:absolute;top:350;left:310;visibility:visible;">
 <a href="#"
onClick="ph(1,0,3,4,'aa2',2,50,200,'visible','visible','hidden')">
 <img border="0" src="images/BOTT15.gif" width="140" height="40"></a></div>
  <div id="aa3"
style="position:absolute;top:350;left:460;visibility:visible;">
 <a href="#"
onClick="ph(1,2,0,4,'aa3',3,50,200,'visible','visible','hidden')">
 <img border="0" src="images/BOTT2.gif" width="140" height="40"></a></div>
  <div id="aa4"
style="position:absolute;top:350;left:610;visibility:visible;">
 <a href="#"
onClick="ph(1,2,3,0,'aa4',4,50,200,'visible','visible','hidden')">
 <img border="0" src="images/BOTT3.gif" width="140" height="40"></a></div>
 <div id="comm0"
style="position:absolute;top:300;left:100;height:200;width:400;visibility:hi
dden;">
 <p align="center">commento 0commento0commento 0 commento0<br>
 <br>
 <a
href="javascript:ph(1,2,3,4,'aa0',0,350,10,'hidden','visible','visible');">T
orna</a></p></div>
 </div>
 <div id="comm1"
style="position:absolute;top:300;left:100;height:200;width:400;visibility:hi
dden;">
 <p align="center">commento1 commento1commento 1 commento1<br>
 <br>
 <a
href="javascript:ph(0,2,3,4,'aa1',1,350,160,'hidden','visible','visible');">
Torna</a></p></div>
 </div>
<div id="comm2"
style="position:absolute;top:300;left:100;height:200;width:400;visibility:hi
dden;">
 <p align="center">commento2 commento2commento  commento2<br>
 <br>
 <a
href="javascript:ph(1,0,3,4,'aa2',2,350,310,'hidden','visible','visible');">
Torna</a></p></div>
 </div>
<div id="comm3"
style="position:absolute;top:300;left:100;height:200;width:400;visibility:hi
dden;">
 <p align="center">commento 3commento3commento  commento3<br>
 <br>
 <a
href="javascript:ph(1,2,0,4,'aa3',3,350,460,'hidden','visible','visible');">
Torna</a></p></div>
 </div>
<div id="comm4"
style="position:absolute;top:300;left:100;height:200;width:400;visibility:hi
dden;">
 <p align="center">commento4 commento4commento  4commento<br>
 <br>
 <a
href="javascript:ph(1,2,3,0,'aa4',4,350,610,'hidden','visible','visible');">
Torna</a></p></div>
 </div>
</body>
</html>
andreotta fabiano
 WebMªster ATI POWER s.n.c.
 
andr...@atipower.it
 
http://www.atipower.it
    -new-
 
http://www.aticommerce.com
 
http://www.afdsoftware.freeweb.org
 
http://www.jsdir.com

Il Mon, 15 Jan 2001 19:20:47 +0100, Daniele Ciavattini ha scritto.....

Usa due layers.
-- 
Ciao, Riccardo
------------------------------------------------------------------------
WebMaster: ----> 
http://www.jsdir.com
 <---- (aka 
http://www.jspoint.it
)
------------------------------------------------------------------------
               Nessun traguardo è abbastanza lontano.
------------------------------------------------------------------------