Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it
    Registrato dal
    Aug 2006
    Messaggi
    35

    Scipt: Problema Funzionamento

    File: index.html

    Codice PHP:
    <html> <head> <title>SAS SoftAir</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="moove.js"></script> <style type="text/css">  </style></head>  <body> <table width="1024" border="0" align="center" cellpadding="0" cellspacing="0">   <tr>     <td><table width="1024" border="0" cellspacing="0" cellpadding="0">       <tr>         <td width="131" background="images/bgsx.jpg"></td>         <td width="762"><table width="762" align="center" border="0" cellspacing="0" cellpadding="0">   <tr>     <td colspan="5" valign="top">[img]images/indexup.jpg[/img]</td>     </tr>   <tr>     <td colspan="5">[img]images/indexcn.jpg[/img]</td>     </tr>   <tr>     <td width="280">[img]images/menusx.jpg[/img]</td>     <td width="122">[url="index.html"][img]images/site.jpg[/img][/url]</td>     <td width="122">[url="index.html"][img]images/forum.jpg[/img][/url]</td>     <td width="122">[url="index.html"][img]images/email.jpg[/img][/url]</td>     <td width="116">[img]images/menudx.jpg[/img]</td>   </tr>   <tr>     <td colspan="5">[img]images/indexdw.jpg[/img]</td>     </tr> </table> </td>         <td width="131" background="images/bgdx.jpg"></td>       </tr>     </table></td>   </tr> </table> </body> </html> 
    File: moove.js

    Codice PHP:
    function on1()  {if (!document.images) return; document.site.src "images/sitesel.jpg";}  function on2()  {if (!document.images) return; document.forum.src "images/forumsel.jpg";} function on3()  {if (!document.images) return; document.email.src "images/emailsel.jpg";}  function off1()  {if (!document.images) return; document.site.src "images/site.jpg";} function off2()  {if (!document.images) return; document.forum.src "images/forum.jpg";} function off3()  {if (!document.images) return; document.email.src "images/email.jpg";}  var imgslist = new Array( "images/site_sel.gif""images/forum_sel.gif""images/email_sel.gif",  var imgs=new Array();  for (x=0x<imgslist.lengthx++)   if (document.images)    {imgs[x]=new Image(); imgs[x].src imgslist[x];} 
    Passando Sopra con il mouse dovrebbe cambiare l'immagine ma non lo fa.
    Ho controllato e mi sembra giusto solo che sono un po fuori allenamento. HELP!!!

  2. #2
    Moderatore di JavaScript L'avatar di br1
    Registrato dal
    Jul 1999
    Messaggi
    19,998
    Il testo postato cosi' e' illeggibile: costringi l'utente che vorrebbe aiutarti a editarlo e formattarlo.

    Titolo fuori regolamento

    Riprova
    Il guaio per i poveri computers e' che sono gli uomini a comandarli.

    Attenzione ai titoli delle discussioni: (ri)leggete il regolamento
    Consultate la discussione in rilievo: script / discussioni utili
    Usate la funzione di Ricerca del Forum

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.