hallo zusammen
also, ich möchte mit der tabtaste durch ein
formular manöverieren. dazu habe ich folgneden
script in einem mc liegen:
PHP-Code:
on (keyPress "<Tab>") {
path = targetPath(this)+".";
for (i=0; i<tabOrder.length; i++) {
if (Selection.getFocus() == path+tabOrder[i]) {
current = i;
break;
}
}
// TAB-Taste gedrückt
if (Key.isDown(Key.TAB) && !Key.isDown(Key.SHIFT)) {
current++;
if (current>tabOrder.length-1) {
current = 0;
}
// TAB-Taste und Shift-Taste gedrückt
} else if (Key.isDown(Key.TAB) && Key.isDown(Key.SHIFT)) {
current--;
if (current<0) {
current = tabOrder.length-1;
}
}
Selection.setFocus(tabOrder[current]);
}
und das hier in einem frame in der HZL
PHP-Code:
tabOrder = new Array("name", "strasse", "stadt", "email", "text");
aber es funzt nicht und ich blicks einfach nicht mehr
ziriander