Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18

Thread: Problema Javascript...

  1. #16
    Lieutenant Commander Shub's Avatar
    Join Date
    Oct 2003
    Location
    Firenze
    Posts
    26.132

    Default

    Metrox hai la inbox di wayne piena, cmq provo a far da me lunedi che ora vo a casa.
    Se non ci riesco di mando l'html.

    Grazie ancora.

  2. #17
    Lieutenant Commander Mez's Avatar
    Join Date
    Sep 2003
    Location
    Milano
    Posts
    6.607

    Default

    Code:
    <html>
    <head>
    <title>
    blablabla
    </title>
    <script language="JavaScript">
    
      Rollimage = new Array()
    
      Rollimage[0]= new Image(121,153)
      Rollimage[0].src = "aperto.jpg"
    
      Rollimage[1] = new Image(121,153)
      Rollimage[1].src = "chiuso.jpg"
    
      function SwapOut(){
        document.Rupert.src = Rollimage[1].src;
        return true;
      }
    
      function SwapBack(){
        document.Rupert.src = Rollimage[0].src; 
        return true;
      }
    
    // - stop hiding          --> 
    </script>
    </head>
    
    <body>
    <p align="center"> 
    <a href="#"
      onmouseover="SwapOut()"
      onmouseout="SwapBack()">
    <img src="tuaimmagine.jpg"
      name="" 
      width=xxx
      height=xxx
      border=0>
    </a> 
    </p>
    </body> 
    </html>
    con i css non puo fare il rollover se quando è nella pagina vuole l'effetto attivo, puo farlo con il php volendo, piu facile e meno rognoso di tutta sta pappardella java

    poi ovviamente adattalo alle tue esigenze
    ps: l css fallo tutto in un foglio a parte, mai nel index.page del sito, consiglio personale ovvio
    Last edited by Mez; 3rd December 2010 at 17:53.

  3. #18
    Lieutenant Commander Shub's Avatar
    Join Date
    Oct 2003
    Location
    Firenze
    Posts
    26.132

    Default

    Metrox hai la box piena...cmq

    Fai con comodo non ci sono problemi
    Grazie mille ancora

    Mez grazie mille delle dritte, ho fatto 2 style css ma mi ero dimenticato di cancellare la roba dall'html e mettere il link stylesheet...

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[Output: 46.78 Kb. compressed to 39.76 Kb. by saving 7.02 Kb. (15.00%)]