Newsgroup: it.comp.lang.javascript
Titolo: Aiuto aiuto aiuto! ci sto impazzendo!

IE Mi dice che non và bene! eppure so che và bene! dov'è l'errore?????
<?if ($pos == "")
 $pos = -1; ?>
<DIV ID=mv2></DIV>
<script LANGUAGE="JavaScript">
document.write("<STYLE TYPE='text/css'>\na.mv2style 
{color:#CD9CA3;text-decoration:none;font-style: italic}\na:hover.mv2style 
{color:#771616;text-decoration:underlined;}\n</STYLE>");
mv2_menu = new Array();
mv2_lien = new Array();
mv2_menu[0] = "<img name=Image1 border=0 src='/img/assoc.gif' width=170 
height=22 onMouseOut='MM_swapImgRestore()' 
onMouseOver=MM_swapImage('Image1','','/img/assoc1.gif',1)>";
mv2_menu[1] = "<img name=Image2 border=0 src='/img/servizi.gif' width=170 
height=22 onMouseOut='MM_swapImgRestore()' 
onMouseOver=MM_swapImage('Image2','','/img/servizi1.gif',1)>";
mv2_menu[2] = "<img name=Image3 border=0 src='/img/eventi.gif' width=170 
height=22 onMouseOut='MM_swapImgRestore()' 
onMouseOver=MM_swapImage('Image3','','/img/eventi1.gif',1)>";
mv2_lien[1] = "<a href='../reserved_servizi/forum.php' target='_self' 
onMouseOut='MM_swapImgRestore()' 
onMouseOver=MM_swapImage('Image7','','/img/2_forum1.gif',1)>  <img 
src='/img/2_forum.gif' name=Image7 width=170 height=22 border=0></a><br>";
mv2_lien[1] += "<a href='../reserved_servizi/contatti.php' target='_self' 
onMouseOut='MM_swapImgRestore()' 
onMouseOver=MM_swapImage('Image12','','/img/2_contatti1.gif',1)>  <img 
src='/img/2_contatti.gif' name=Image12 width=170 height=22 
border=0></a><br>";
mv2_lien[1] += "<a href='../reserved_servizi/areafiscale.php' target='_self' 
onMouseOut='MM_swapImgRestore()' 
onMouseOver=MM_swapImage('Image13','','/img/2_afiscale1.gif',1)>  <img 
src='/img/2_afiscale.gif' name=Image13 width=170 height=22 
border=0></a><br>";
mv2_lien[1] += "<a href='../reserved_servizi/arealegale.php' target='_self' 
onMouseOut='MM_swapImgRestore()' 
onMouseOver=MM_swapImage('Image14','','/img/2_alegale1.gif',1)>  <img 
src='/img/2_alegale.gif' name=Image14 width=170 height=22 
border=0></a><br>";
mv2_lien[1] += "<a href='../reserved_servizi/edilizia.php' target='_self' 
onMouseOut='MM_swapImgRestore()' 
onMouseOver=MM_swapImage('Image15','','/img/2_edilizia1.gif',1)>  <img 
src='/img/2_edilizia.gif' name=Image15 width=170 height=22 
border=0></a><br>";
mv2_lien[1] += "<a href='../reserved_servizi/finanziamenti.php' 
target='_self' onMouseOut='MM_swapImgRestore()' 
onMouseOver=MM_swapImage('Image16','','/img/2_finanziamenti1.gif',1)>  <img 
src='/img/2_finanziamenti.gif' name=Image16 width=170 height=22 
border=0></a><br>";
mv2_lien[0] = "<a href='../associazione/storia.php?pos=0' target='_self' 
onMouseOut='MM_swapImgRestore()' 
onMouseOver=MM_swapImage('Image6','','/img/1_storia1.gif',1)>  <img 
src='/img/1_storia.gif' name=Image6 width=170 height=22 border=0></a><br>";
mv2_lien[0] += "<a href='../associazione/statuto.php?pos=0' target='_self' 
onMouseOut='MM_swapImgRestore()' 
onMouseOver=MM_swapImage('Image9','','/img/1_statuto1.gif',1)>  <img 
src='/img/1_statuto.gif' name=Image9 width=170 height=22 border=0></a><br>";
mv2_lien[0] += "<a href='../associazione/cariche.php?pos=0' target='_self' 
onMouseOut='MM_swapImgRestore()' 
onMouseOver=MM_swapImage('Image10','','/img/1_cariche1.gif',1)>  <img 
src='/img/1_cariche.gif' name=Image10 width=170 height=22 
border=0></a><br>";
mv2_lien[0] += "<a href='../associazione/comeassociarsi.php?pos=0' 
target='_self' onMouseOut='MM_swapImgRestore()' 
onMouseOver=MM_swapImage('Image11','','/img/1_comeassoc1.gif',1)>  <img 
src='/img/1_comeassoc.gif' name=Image11 width=170 height=22 
border=0></a><br>";
mv2_lien[2] = "<a href='../eventi/comunicati.php?pos=2' target='_self' 
onMouseOut='MM_swapImgRestore()' 
onMouseOver=MM_swapImage('Image8','','/img/3_comunic1.gif',1)>  <img 
src='/img/3_comunic.gif' name=Image8 width=170 height=22 border=0></a><br>";
mv2_lien[2] += "<a href='../eventi/pubblicazioni.php?pos=2' target='_self' 
onMouseOut='MM_swapImgRestore()' 
onMouseOver=MM_swapImage('Image8','','/img/3_pubblic1.gif',1)>  <img 
src='/img/3_pubblic.gif' name=Image8 width=170 height=22 border=0></a><br>";
mv2_lien[2] += "<a href='../eventi/evento_convegno.php?pos=2' target='_self' 
onMouseOut='MM_swapImgRestore()' 
onMouseOver=MM_swapImage('Image17','','/img/3_calendario1.gif',1)>  <img 
src='/img/3_calendario.gif' name=Image17 width=170 height=22 
border=0></a><br>";
mv2_lien[2] += "<a href='../eventi/dimore.php?pos=2' target='_self' 
onMouseOut='MM_swapImgRestore()' 
onMouseOver=MM_swapImage('Image18','','/img/3_dimore1.gif',1)>  <img 
src='/img/3_dimore.gif' name=Image18 width=170 height=22 border=0></a><br>";
mv2_pos = <?=$pos?>;
function mv2_menu_draw()
{
 mv2_aff = "<TABLE BORDER=0 BGCOLOR=#771616 CELLPADDING=0 CELLSPACING=0 
WIDTH=170><TR><TD><TABLE BORDER=0 CELLPADDING=3 CELLSPACING=1 WIDTH=100%>";
 for(a = 0; a < mv2_menu.length; a++)
 {
  if(mv2_pos == a || !document.getElementById)
   bgcolor = "#771616";
  else
   bgcolor = "#771616";
  if(document.getElementById)
   mv2_aff += "<tr><td bgcolor="+bgcolor+"><a href=\"#\" 
onClick=\"mv2_pos="+a+";mv2_menu_draw()\"><font face=\"Verdana\" 
SIZE=2>"+mv2_menu[a]+"</font></A></td></tr>";
  else
   mv2_aff += "<tr><td bgcolor="+bgcolor+"><font face=\"Verdana\" SIZE=2 
color=#B27A7F>"+mv2_menu[a]+"</font></td></tr>";
  if(mv2_pos == a || !document.getElementById)
   mv2_aff += "<tr><td bgcolor="+bgcolor+"><font face=\"Verdana\" SIZE=2 
color=#000000>"+mv2_lien[a]+"</font></td></tr>";
 }
 mv2_aff += "</table></td></tr></table>";
 if(document.getElementById)
  document.getElementById("mv2").innerHTML = mv2_aff;
 else
  document.write(mv2_aff);
}
mv2_menu_draw();
</script>
Grazie!
-- 
---
(¯`·.¸ZIO MANGLER¸.·´¯)®
--- 

salve, sono giorgio cazzon
mi petino tute le matine e mi rinfresco il cul
mi petino mi petino
e sospiro al sol
grazie per l'attenzione
-----
gio...@cazzon.com

 WIDTH=170><TR><TD><TABLE BORDER=0 CELLPADDING=3 CELLSPACING=1 WIDTH=100%>";
Ma separa quantomeno l'ultimo attributo con gli apici o doppi apici, in
modo che non figuri "%>"
<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=1 WIDTH='100%'>";
(poi sarebbe bene scrivere un po' piu' orientati a XHTML, ma questo e' un
altro discorso)
-- 
ZER0://coder.gfxer.web-designer/
~ Se potete leggere questo, la mia donna e' caduta.
(Letta sul retro di una maglietta di un motociclista)
on air ~ "(Aqua) Turn Back Time"