Category: javascript

[Javascript] Dimensioni di un file Human-readable!

tradurre automaticamente testi sfruttando le api di google

[Javascript] Drag and Drop su iPhone!

Nel tutorial di oggi dedicato allo sviluppo di applicazioni web per iPhone, imparerete come effettuare un Drag and Drop sugli elementi presenti del vostro sito.

 
node.ontouchmove = function(e){
  if(e.touches.length == 1){ // Only deal with one finger
    var touch = e.touches[0]; // Get the information for finger #1
    var node = touch.target; // Find the node the drag started from
    node.style.position = "absolute";
    node.style.left = touch.pageX + "px";
    node.style.top = touch.pageY + "px";
  }
}
 …

Simulare l’effetto hover su iPhone!

Rilevare l’orientamento di un iPhone!

Rilevare iPhone e iPod con Javascript

Integrare google street map api su una pagina web

Limitare il numero di caratteri in una textarea in javascript!

Controllare il blocco popup in Javascript

Un fix che corregge la trasparenza su Internet Explorer 6

Script javascript – accettare termini e condizioni

tra i tag e occorre inserire

 
<script type="text/javascript">
function verificacheck(f){
if (f.agree.checked == false )
{
alert("devi accettare i termini per continuare");
return false;
}else
return true;
}
</script>
 

il modulo html potrebbe essere qualcosa di simile

<form action=”" method=”GET” onsubmit=”return verificacheck(this)”
Accetto termini e condizioni: <input type=”checkbox” value=”0″ name=”agree”/
<input type=”submit” value=”Continua”/
</form…

Condividi





Booking online




Categorie