Visualizzazione dei risultati da 1 a 2 su 2

Discussione: SwapImage doppio

  1. #1

    SwapImage doppio

    Allora, il problema è il seguente

    ho un tasto (A) che con effetto rollover deve cambiare le immagini (B) e (C), quando faccio il rollout (B) deve tornare allo stato precedente mentre (C) non deve tornare allo stato iniziale.... come faccio che (prettendo che non so scriptare) con gli scritp fatti da Fireworks la cosa non funziona?

    Che la madre luna possa illuminare il tuo cammino nel buio della notte

    against Rules, against ASWED

  2. #2
    Prova così:
    codice:
    <HTML><BODY>
    <DIV align="center">
    <FORM action="swap.html" method="post">
    <INPUT id="a" type="button" value="AAAAA" onMouseOver="do_it();" onMouseOut="Restore();"></FORM>
    
    
    
    </DIV>
    <SCRIPT language="Javascript1.2">
    <!--
    function do_it()
    {
    var wb=document.getElementById("b").width;
    var wc=document.getElementById("c").width;
    document.getElementById("b").src="http://www4.nau.edu/bilby/Images/letter_B.gif";
    document.getElementById("c").src="http://www.julen.net/cfp/alphabet/digital/img/c.gif";
    document.getElementById("b").width=wb;
    document.getElementById("c").width=wc;
    }
    
    function Restore()
    {
    var wb=document.getElementById("b").width;
    document.getElementById("b").src="http://www.designsinstitches.net/Design%20Stitchouts/ABC%20Applique%20Quilt/Letter%20B.jpg";
    document.getElementById("b").width=wb;
    }
    //-->
    </SCRIPT></BODY></HTML>
    Open ur mind 'n ENJOY da' power of JavaSkript :-)...
    Coded by 16437952

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.