Visualizzazione dei risultati da 1 a 7 su 7

Hybrid View

  1. #1
    Moderatore di Annunci siti web, Offro lavoro/collaborazione, Cerco lavoro L'avatar di cavicchiandrea
    Registrato dal
    Aug 2001
    Messaggi
    26,134
    Prova cosi
    codice:
    // function thats called when any of the keys on the keyboard are pressed  
      $("input:text, input:password").bind("click",function(e){
                                           
            if( $(this).val()=='Cancella'){
                $(this).replaceSelection("",true);
            }
            
            elseif( $(this).val()=="Maiusc"){
                if(shifton ==false){
                    onShift(1);    
                    shifton =true;
                }
                
                else{
                    onShift(0);
                    shifton =false;
                } 
            }
            
            else{
            
                $(this).replaceSelection($(this).val(),true);
                
                if(shifton ==true){
                    onShift(0);
                    shifton =false;
                }
            }
        });
        
    });
    Ultima modifica di cavicchiandrea; 09-03-2017 a 19:52

  2. #2
    Utente di HTML.it
    Registrato dal
    Feb 2017
    Messaggi
    158
    Quote Originariamente inviata da cavicchiandrea Visualizza il messaggio
    Prova cosi
    codice:
    // function thats called when any of the keys on the keyboard are pressed  
      $("input:text, input:password").bind("click",function(e){
                                           
            if( $(this).val()=='Cancella'){
                $(this).replaceSelection("",true);
            }
            
            elseif( $(this).val()=="Maiusc"){
                if(shifton ==false){
                    onShift(1);    
                    shifton =true;
                }
                
                else{
                    onShift(0);
                    shifton =false;
                } 
            }
            
            else{
            
                $(this).replaceSelection($(this).val(),true);
                
                if(shifton ==true){
                    onShift(0);
                    shifton =false;
                }
            }
        });
        
    });
    mmh ...sembra proprio non funzionare...non riesco a scrivere in nessun campo in questo modo

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 © 2026 vBulletin Solutions, Inc. All rights reserved.