- 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
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
function send_posit(a){
a='<'+a+'>';
$.ajax(
{url: 'handler.php',
data : { posit_this: a},
type : "POST",
async: false,
dataType: "html",
success: function(data){data_br=data;}
})
}
function reset_all(){$("#Sub_menu1").html('');$("#Sub_menu2").html('');$("#Sub_menu3").html('');$("#Sub_menu4").html('');$("#tovar").html('');}
function reset_sub_menu2(){$("#Sub_menu3").html('');$("#Sub_menu4").html('');$("tovar").html('');$("#tovar").html('');}
function reset_sub_menu3(){$("#Sub_menu4").html('');$("#tovar").html('');}
function reset_tovar(){$("#tovar").html('');}
function Katalog(p){
switch (p)
{
case 0: send_posit("cat01");$("#menu0").html(data_br);send_posit("cat011");$("#Sub_menu1").html(data_br);send_posit("cat012");$("#Sub_menu2").html(data_br);
send_posit("cat013");$("#Sub_menu3").html(data_br);send_posit("cat014");$("#Sub_menu4").html(data_br);break;
case 1: send_posit("cat01");$("#menu0").html(data_br);reset_all();send_posit("cat1");$("#Sub_menu1").html(data_br);break;
case 2:send_posit("cat02");$("#menu0").html(data_br);reset_all();send_posit("cat2");$("#Sub_menu1").html(data_br);break;
case 3:send_posit("cat03");$("#menu0").html(data_br);reset_all();send_posit("cat3");$("#Sub_menu1").html(data_br);break;
case 4:send_posit("cat04");$("#menu0").html(data_br);reset_all();send_posit("cat4");$("#Sub_menu1").html(data_br);break;
case 11:send_posit("cat11");reset_sub_menu2();$("#Sub_menu2").html(data_br);break;
case 111:send_posit("cat111");reset_sub_menu3();$("#Sub_menu3").html(data_br);break;
case 1111:send_posit("tov_kart_1111");$("#tovar").html(data_br);break;
case 1112:send_posit("tov_kart_1112");$("#tovar").html(data_br);break;
case 1113:send_posit("tov_kart_1113");$("#tovar").html(data_br);break;
case 1114:send_posit("tov_kart_1114");$("#tovar").html(data_br);break;
case 112:send_posit("cat112");reset_sub_menu3();$("#Sub_menu3").html(data_br);break;
case 113:send_posit("tov_kart_1131");reset_sub_menu2();$("#tovar").html(data_br);break;
case 1121:send_posit("tov_kart_1121");$("#tovar").html(data_br);break;
case 1122:send_posit("tov_kart_1122");$("#tovar").html(data_br);break;
case 1123:send_posit("tov_kart_1123");$("#tovar").html(data_br);break;
case 12:send_posit("cat12");reset_sub_menu2();$("#Sub_menu2").html(data_br);break;
case 121:send_posit("tov_kart_121");reset_sub_menu2();$("#tovar").html(data_br);break;
case 122:send_posit("tov_kart_122");reset_sub_menu2();$("#tovar").html(data_br);break;
case 123:send_posit("tov_kart_123");reset_sub_menu2();$("#tovar").html(data_br);break;
case 13:send_posit("cat13");reset_sub_menu2();$("#Sub_menu2").html(data_br);break;
case 131:send_posit("tov_kart_131");reset_sub_menu2();$("#tovar").html(data_br);break;
case 132:send_posit("tov_kart_132");reset_sub_menu2();$("#tovar").html(data_br);break;
case 133:send_posit("tov_kart_133");reset_sub_menu2();$("#tovar").html(data_br);break;
case 134:send_posit("tov_kart_134");reset_sub_menu2();$("#tovar").html(data_br);break;
case 14:send_posit("cat14");reset_sub_menu2();$("#Sub_menu2").html(data_br);break;
case 141:send_posit("cat141");reset_sub_menu3();$("#Sub_menu3").html(data_br);break;
case 142:send_posit("cat142");reset_sub_menu3();$("#Sub_menu3").html(data_br);break;
case 16:send_posit("cat16");reset_sub_menu2();$("#Sub_menu2").html(data_br);break;
case 161:send_posit("cat161");reset_sub_menu3();$("#Sub_menu3").html(data_br);break;
case 162:send_posit("cat162");reset_sub_menu3();$("#Sub_menu3").html(data_br);break;
case 163:send_posit("cat163");reset_sub_menu3();$("#Sub_menu3").html(data_br);break;
case 1611:send_posit("tov_kart_1611");$("#tovar").html(data_br);break;
case 1612:send_posit("tov_kart_1612");$("#tovar").html(data_br);break;
case 1613:send_posit("tov_kart_1613");$("#tovar").html(data_br);break;
case 1614:send_posit("tov_kart_1614");$("#tovar").html(data_br);break;
case 1615:send_posit("tov_kart_1615");$("#tovar").html(data_br);break;
case 1621:send_posit("tov_kart_1621");$("#tovar").html(data_br);break;
case 1622:send_posit("tov_kart_1622");$("#tovar").html(data_br);break;
case 1623:send_posit("tov_kart_1623");$("#tovar").html(data_br);break;
case 1631:send_posit("tov_kart_1631");$("#tovar").html(data_br);break;
case 1632:send_posit("tov_kart_1632");$("#tovar").html(data_br);break;
case 1633:send_posit("tov_kart_1633");$("#tovar").html(data_br);break;
case 1634:send_posit("tov_kart_1634");$("#tovar").html(data_br);break;
case 1635:send_posit("tov_kart_1635");$("#tovar").html(data_br);break;
case 1636:send_posit("tov_kart_1636");$("#tovar").html(data_br);break;
case 1637:send_posit("tov_kart_1637");$("#tovar").html(data_br);break;
case 1638:send_posit("tov_kart_1638");$("#tovar").html(data_br);break;
case 1639:send_posit("tov_kart_1639");$("#tovar").html(data_br);break;
case 15:send_posit("cat15");reset_sub_menu2();$("#Sub_menu2").html(data_br);break;
case 151:send_posit("cat151");reset_sub_menu3();$("#Sub_menu3").html(data_br);break;
case 152:send_posit("cat152");reset_sub_menu3();$("#Sub_menu3").html(data_br);break;
case 1511:send_posit("tov_kart_1511");$("#tovar").html(data_br);break;
case 1512:send_posit("tov_kart_1512");$("#tovar").html(data_br);break;
case 1513:send_posit("tov_kart_1513");$("#tovar").html(data_br);break;
о майн гад.
Каталог который можно написать на jquery в 15строк