Originariamente inviato da Athreyu
1) Come posso limitare il numero massimo di caratteri che si possono scrivere?

2) Non ho trovato nessuno script che funzioni con la possibilità di:

- comandi: Play, Stop (e se possibile pure Start)
- possibilità di scegliere tra una lista di MIDI disponibile.

Grazie.

1) <script language="JavaScript" type="text/javascript">
function contaCaratteri(val) {
max=130
if (val.testo.value.length > max) {
val.testo.value = val.testo.value.substring(0,max)
rest = 0
}
else {
rest = max - val.testo.value.length
}
val.num.value = rest
}
</SCRIPT>

</head>

<body>
<form name="html">
<textarea name="testo" rows="4" cols="30" wrap="soft" onKeyUp="contaCaratteri(this.form)"></textarea>
<input value="130" size="3" name="num" disabled>
</form>

2) http://forum.html.it/forum/showthrea...hreadid=524457