mentre su libero ho trovato questo...
(l'ho tagliato, se lo volete vedere tutto ecco il link per scaricarlo... http://news2000.libero.it/js/hp.js)
codice:
<script language="JavaScript">
function roll(quale,over) {
if (document.all){
var obj
if ((document.all) && (over)) {
obj='document.all["rigo' + quale +'"].bgColor="#E7E7E7"'
eval (obj);
obj='document.all["testo' + quale +'"].style.color="#913741"'
eval (obj);}
if ((document.all) && (!over)) {
obj='document.all["rigo' + quale +'"].bgColor="#FFFFFF"'
eval (obj);
obj='document.all["testo' + quale +'"].style.color="#000000"'
eval (obj);}
}
</script>
l'ho copiato tra i tag head e ho messo su questa tabella...
codice:
<table width="140" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="text" id="rigo1" onClick="location.href='/index.html'"
onmouseover="roll('1',true); style.cursor='hand';" onmouseout="roll('1',false);"> prima pagina</td>
</tr>
<tr>
<td height="1" bgcolor="316394">[img]/img/space.gif[/img]</td>
</tr>
<tr>
<td class="text" id="rigo2" onClick="location.href='/index_lista_un.html'"
onmouseover="roll('2',true); style.cursor='hand';" onmouseout="roll('2',false);"> ultime notizie</td>
</tr>
<tr>
<td height="1" bgcolor="316394">[img]/img/space.gif[/img]</td>
</tr>
<tr>
<td class="text" id="rigo8" onClick="location.href='/index_rubrica.html'"
onmouseover="roll('8',true); style.cursor='hand';" onmouseout="roll('8',false);"> web magazine</td>
</tr>
<tr>
<td height="1" bgcolor="316394">[img]/img/space.gif[/img]</td>
</tr>
<tr>
<td class="text" id="rigo3" onClick="location.href='/index_fotogallery.html'"
onmouseover="roll('3',true); style.cursor='hand';" onmouseout="roll('3',false);"> fotogallery</td>
</tr>
<tr>
<td height="1" bgcolor="316394">[img]/img/space.gif[/img]</td>
</tr>
<tr>
<td class="text" id="rigo4" onClick="location.href='/index_internetlife.html'"
onmouseover="roll('4',true); style.cursor='hand';" onmouseout="roll('4',false);"> internet life</td>
</tr>
<tr>
<td height="1" bgcolor="316394">[img]/img/space.gif[/img]</td>
</tr>
<tr>
<td class="text" id="rigo9" onClick="location.href='/index_noi2000.html'"
onmouseover="roll('9',true); style.cursor='hand';" onmouseout="roll('9',false);"> noi2000</td>
</tr>
<tr>
<td height="1" bgcolor="316394">[img]/img/space.gif[/img]</td>
</tr>
<tr>
<td class="text" id="rigo10" onClick="location.href='/index_gossip.html'"
onmouseover="roll('10',true); style.cursor='hand';" onmouseout="roll('10',false);">
gossip</td>
</tr>
<tr>
<td height="1" bgcolor="316394">[img]/img/space.gif[/img]</td>
</tr>
<tr>
<td class="text" id="rigo11" onClick="location.href='/index_speciali.html'"
onmouseover="roll('11',true); style.cursor='hand';" onmouseout="roll('11',false);">
speciali</td>
</tr>
<tr>
<td height="1" bgcolor="316394">[img]/img/space.gif[/img]</td>
</tr>
<tr>
<td class="text" id="rigo12" onClick="location.href='/index_madavvero.jhtml'"
onmouseover="roll('12',true); style.cursor='hand';" onmouseout="roll('12',false);">
ma davvero?</td>
</tr>
<tr>
<td height="1" bgcolor="316394">[img]/img/space.gif[/img]</td>
</tr>
<tr>
<td class="text" id="rigo13" onClick="location.href='/index_archivi.html'"
onmouseover="roll('13',true); style.cursor='hand';" onmouseout="roll('13',false);">
archivi</td>
</tr>
<tr>
<td height="1" bgcolor="316394">[img]/img/space.gif[/img]</td>
</tr>
<tr>
<td class="text" id="rigo15" onClick="location.href='/index_archivio_nwsl.html'"
onmouseover="roll('15',true); style.cursor='hand';" onmouseout="roll('15',false);">
newsletter</td>
</tr>
<tr>
<td height="1" bgcolor="316394">[img]/img/space.gif[/img]</td>
</tr>
<tr>
<td class="text" id="rigo17" onClick="location.href='/meteo/index.html'"
onmouseover="roll('17',true); style.cursor='hand';" onmouseout="roll('17',false);">
meteo</td>
</tr>
<tr>
<td height="1" bgcolor="316394">[img]/img/space.gif[/img]</td>
</tr>
<tr>
<td class="text" id="rigo18" onClick="location.href='http://news2000.libero.it/forum/'"
onmouseover="roll('18',true); style.cursor='hand';" onmouseout="roll('18',false);">
forum</td>
</tr>
<tr>
<td height="1" bgcolor="316394">[img]/img/space.gif[/img]</td>
</tr>
<tr>
<td class="text" id="rigo19" onClick="location.href='/speciali/sp68/pg1.html'"
onmouseover="roll('19',true); style.cursor='hand';" onmouseout="roll('19',false);">
link utili</td>
</tr>
<tr>
<td height="1" bgcolor="316394">[img]/img/space.gif[/img]</td>
</tr>
</table>
ma mi da questo errore:
riga 152
carattere 1
errore previsto oggetto
codice 0
url: http://localhost/ecc...
ovviamente non mi visualizza il rollover...
sto provando ad adattarlo, perchè ho visto che il menu di libero, si vede bene con tutti i browser...
come posso fare? mi dareste una mano?
Grazie mille!!