- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
function moveup() {
if (document.all.menuedit.menuitemslist.selectedIndex > 0) {
var addt = document.all.menuedit.menuitemslist.options(document.all.menuedit.menuitemslist.selectedIndex).text;
var addv = document.all.menuedit.menuitemslist.options(document.all.menuedit.menuitemslist.selectedIndex).value;
var addtold = document.all.menuedit.menuitemslist.options(document.all.menuedit.menuitemslist.selectedIndex - 1).text;
var addvold = document.all.menuedit.menuitemslist.options(document.all.menuedit.menuitemslist.selectedIndex - 1).value;
document.all.menuedit.menuitemslist.options(document.all.menuedit.menuitemslist.selectedIndex - 1).text = addt;
document.all.menuedit.menuitemslist.options(document.all.menuedit.menuitemslist.selectedIndex - 1).value = addv;
document.all.menuedit.menuitemslist.options(document.all.menuedit.menuitemslist.selectedIndex).text = addtold;
document.all.menuedit.menuitemslist.options(document.all.menuedit.menuitemslist.selectedIndex).value = addvold;
document.all.menuedit.menuitemslist.selectedIndex = document.all.menuedit.menuitemslist.selectedIndex - 1;
}
}
function movedown() {
if ((document.all.menuedit.menuitemslist.selectedIndex > -1) && (document.all.menuedit.menuitemslist.selectedIndex < (document.all.menuedit.menuitemslist.length - 1))) {
var addt = document.all.menuedit.menuitemslist.options(document.all.menuedit.menuitemslist.selectedIndex).text;
var addv = document.all.menuedit.menuitemslist.options(document.all.menuedit.menuitemslist.selectedIndex).value;
var addtold = document.all.menuedit.menuitemslist.options(document.all.menuedit.menuitemslist.selectedIndex + 1).text;
var addvold = document.all.menuedit.menuitemslist.options(document.all.menuedit.menuitemslist.selectedIndex + 1).value;
document.all.menuedit.menuitemslist.options(document.all.menuedit.menuitemslist.selectedIndex + 1).text = addt;
document.all.menuedit.menuitemslist.options(document.all.menuedit.menuitemslist.selectedIndex + 1).value = addv;
document.all.menuedit.menuitemslist.options(document.all.menuedit.menuitemslist.selectedIndex).text = addtold;
document.all.menuedit.menuitemslist.options(document.all.menuedit.menuitemslist.selectedIndex).value = addvold;
document.all.menuedit.menuitemslist.selectedIndex = document.all.menuedit.menuitemslist.selectedIndex + 1;
}
}
код видимо осуществляет манипуляции с элементами меню.
написано в до-jQuer-ные времена иркутскими быдлокодерами.
guest 09.12.2011 16:29 # +1
mapron 14.12.2011 08:01 # 0
Надеюсь мой код как раз здесь не окажется никогда)
guest8 09.04.2019 12:16 # −999