ciao a tutti.
per la prima volta devo utilizzare un rollover su dei bottoni fatti da me.
ho trovato su questo sito uno script, funziona con mozilla, netscape, ma con ie 5 mi da dei problemi... ovvero sotto ad ogni bottone mi aggiunge uno spazio che va a sconvolgere tutta la tabella...
lo script è questo:
<SCRIPT LANGUAGE="javascript">
numeroimm=4;
imm=new Array();
for (i=0; i<numeroimm; i++)
{
imm=new Image();
imm.src="home/bott"+(i)+".src";
}
var URL;
function cambia(n,URL)
{
document.images[n].src=URL;
}
</SCRIPT>
e lo uso così sui bottoni (come era indicato)
<table width="809" height="492" cellpadding="0" cellspacing="0">
<tr>
<td width="210" height="492" align="left" valign="top">
<table width="210" height="492" cellpadding="0" cellspacing="0">
<tr>
<td width="210" height="100" align="left" valign="top" background="home/top-left.jpg">
</td>
</tr>
<!-- curriculum -->
<tr>
<td width="210" height="37" align="left" valign="top">
<img border="0" src="home/bott1.jpg" width="210" height="37" onMouseOver="cambia('0','home/bott2.jpg');" onMouseOut="cambia('0','home/bott1.jpg');">
</td>
</tr>
<tr>
<td width="210" height="10" align="left" valign="top" background="home/spazio1.jpg">
</td>
</tr>
<!-- un servizio migliore -->
<tr>
<td width="210" height="37" align="left" valign="top">
<img border="0" src="home/bott3.jpg" width="210" height="37" onMouseOver="cambia('1','home/bott4.jpg');" onMouseOut="cambia('1','home/bott3.jpg');">
</td>
</tr>
<tr>
<td width="210" height="10" align="left" valign="top" background="home/spazio2.jpg">
</td>
</tr>
<!-- traduzioni -->
etc etc etc...
qualcuno sa dirmi il motivo???
tnx!
FAX
per la prima volta devo utilizzare un rollover su dei bottoni fatti da me.
ho trovato su questo sito uno script, funziona con mozilla, netscape, ma con ie 5 mi da dei problemi... ovvero sotto ad ogni bottone mi aggiunge uno spazio che va a sconvolgere tutta la tabella...
lo script è questo:
<SCRIPT LANGUAGE="javascript">
numeroimm=4;
imm=new Array();
for (i=0; i<numeroimm; i++)
{
imm=new Image();
imm.src="home/bott"+(i)+".src";
}
var URL;
function cambia(n,URL)
{
document.images[n].src=URL;
}
</SCRIPT>
e lo uso così sui bottoni (come era indicato)
<table width="809" height="492" cellpadding="0" cellspacing="0">
<tr>
<td width="210" height="492" align="left" valign="top">
<table width="210" height="492" cellpadding="0" cellspacing="0">
<tr>
<td width="210" height="100" align="left" valign="top" background="home/top-left.jpg">
</td>
</tr>
<!-- curriculum -->
<tr>
<td width="210" height="37" align="left" valign="top">
<img border="0" src="home/bott1.jpg" width="210" height="37" onMouseOver="cambia('0','home/bott2.jpg');" onMouseOut="cambia('0','home/bott1.jpg');">
</td>
</tr>
<tr>
<td width="210" height="10" align="left" valign="top" background="home/spazio1.jpg">
</td>
</tr>
<!-- un servizio migliore -->
<tr>
<td width="210" height="37" align="left" valign="top">
<img border="0" src="home/bott3.jpg" width="210" height="37" onMouseOver="cambia('1','home/bott4.jpg');" onMouseOut="cambia('1','home/bott3.jpg');">
</td>
</tr>
<tr>
<td width="210" height="10" align="left" valign="top" background="home/spazio2.jpg">
</td>
</tr>
<!-- traduzioni -->
etc etc etc...
qualcuno sa dirmi il motivo???
tnx!
FAX