ho trovato questo:
http://snipplr.com/view/5148/firefox-wmode-input-fix/
e questo:
Codice PHP:
// [email]konar@airfactory.org[/email]
// [url]http://airfactory.org[/url]
// powered by [email]maliboo@flashzone.pl[/email] & [email]konrad@entropia.pl[/email]
// [url]http://www.flashzone.pl[/url]
#initclip
TextField.prototype.pl = function() {
this.fpl = new Array();
this.fpl[65] = new Array("Ą", "ą");
this.fpl[67] = new Array("Ć", "ć");
this.fpl[69] = new Array("Ę", "ę");
this.fpl[76] = new Array("Ł", "ł");
this.fpl[78] = new Array("Ń", "ń");
this.fpl[79] = new Array("Ó", "ó");
this.fpl[83] = new Array("Ś", "ś");
this.fpl[88] = new Array("Ź", "ź");
this.fpl[90] = new Array("Ż", "ż");
this.alt = 0;
this.caret = 0;
this.onKeyDown = function() {
this.caret = Selection.getCaretIndex();
if (Key.isDown(18)) {
if (!this.alt) {
this.alt = 1;
this.selectable = false;
}
}
this.l = this.text.length;
};
this.onKeyUp = function() {
if (Key.getCode() == 18) {
this.alt = 0;
this.selectable = true;
Selection.setFocus(this);
this.text.length == this.l ? Selection.setSelection(this.caret, this.caret) : Selection.setSelection(1+this.caret, 1+this.caret++);
}
this.kl = Key.getCode();
if ((this.kl == 65 or this.kl == 67 or this.kl == 88 or this.kl == 69 or this.kl == 76 or this.kl == 78 or this.kl == 79 or this.kl == 83 or this.kl == 90) and this.alt) {
(Key.isToggled(20) or Key.isDown(16)) ? this.kl=this.fpl[this.kl][0] : this.kl=this.fpl[this.kl][1];
this.text.length == this.l ? this.text=this.text.substr(0, this.caret)+this.kl+this.text.substr(this.caret) : null;
this.caret++;
Selection.setSelection(this.caret, this.caret);
this.l = this.text.length;
}
};
this.onSetFocus = function(ss, sn) {
if (ss!=sn) {
eval(ss).alt == 1 ? eval(ss).selectable=true : null;
Key.removeListener(ss);
Key.addListener(sn);
}
};
Selection.addListener(this);
};
t = {};
t.onSetFocus = function() {
eval(Selection.getFocus()).pl();
};
Selection.addListener(t);
#endinitclip
Maybe u could write something like this
__________________
ma non mi vanno
che cavolo