RSS

Soft-S


Главная » Файлы » Мои файлы

"Двойное Меню"
28.11.2009, 14:42
<SCRIPT language="JavaScript">
<!--
var maxLength = 10;
     website = new Array;
     website[0] = "Морской бизнес";
     website[1] = "Все для Вебмастера";
     website[2] = "Разное";
     website[3] = "Трудоустройство";
     var trueLength = website.length;
     var lst = website.length;
     url = new Array;
     url[0] = "http://";
     url[1] = "http://";
     url[2] = "http://";
     url[3] = "http://";
     url[4] = "http://";
     ccselect = new Array;
     ccselect[0] = "Морской бизнес";
     ccselect[1] = "Все для Вебмастера";
     ccselect[2] = "Разное";
     ccselect[3] = "Трудоустройство";
     function changePage()
     {
     menuNum = document.ccDoubleList.ccBitsyG.selectedIndex;
             if (menuNum == null){alert("Please select a category from the menu.");return;}
             else
             {
             i = document.ccDoubleList.ccDoubleZ.selectedIndex;
             window.location.href = url[i];
             }
     }
     function changeMenu()
     {
     website.length = 0;
     menuNum = document.ccDoubleList.ccBitsyG.selectedIndex;
             if (menuNum == null) return;
             if (menuNum == 0)
             {
             website = new Array;
             website[0] = new Option("Услуги нашего агентства");
             website[1] = new Option("Оформление паспорта моряка");
             website[2] = new Option("STCW документы");
             website[3] = new Option("Морские ссылки(компании, порты, суда...");
                         website[4] = new Option("Открытые вакансии для моряков");
                         website[5] = new Option("Анкета для моряка");
                         website[6] = new Option("Cправочник морских сокращений");
                         website[7] = new Option("Наши реквизиты");

             url = new Array;
             url[0] = "http://board.vukogurt.ru";
             url[1] = "http://board.vukogurt.ru";
             url[2] = "http://board.vukogurt.ru";
             url[3] = "http://board.vukogurt.ru";
                         url[4] = "http://orehovo";
                         url[5] = "http://orehovo";
                         url[6] = "http://orehovo";
                         url[7] = "http://orehovo";
             }
             if (menuNum == 1)
             {
             website = new Array;
             website[0] = new Option("Статьи");
             website[1] = new Option("Раскрутка сайта");
             website[2] = new Option("Примеры аплетов");
             website[3] = new Option("Примеры JavaScript");
             website[4] = new Option("Полезные ссылки, проги");
             website[5] = new Option("Обмен баннерами");
             website[6] = new Option("Бесплатныe Web Site Hosting");
             website[7] = new Option("Бесплатные e-mail");
             url = new Array;
             url[0] = "http://orehovo";
             url[1] = "http://orehovo";
             url[2] = "http://orehovo";
             url[3] = "http://orehovo";
             url[4] = "http://orehovo";
             url[5] = "http://orehovo";
             url[6] = "http://orehovo";
             url[7] = "http://orehovo";
             }
             if (menuNum == 2)
             {
             website = new Array;
             website[0] = new Option("Мощный поисковик(42 в 1)");
             website[1] = new Option("Обзор поисковиков ");
             website[2] = new Option("Обзор Каталогов");
             website[3] = new Option("Доски бесплатных объявлений");
             website[4] = new Option("Желтые страницы");
             website[5] = new Option("Бесплатные звонки и факс");
             website[6] = new Option("Бесплатные телефонные карточки");
             website[7] = new Option("Виртуальный Херсон");
             website[8] = new Option("Вся халява Инета здесь!");
             url = new Array;
             url[0] = "http://orehovo";
             url[1] = "http://orehovo";
             url[2] = "http://orehovo";
             url[3] = "http://orehovo";
             url[4] = "http://orehovo";
             url[5] = "http://orehovo";
             url[6] = "http://orehovo";
             url[7] = "http://orehovo";
             url[8] = "http://orehovo";
             }
             if (menuNum == 3)
             {
             website = new Array;
             website[0] = new Option("a");
             website[1] = new Option("b");
             website[2] = new Option("c");
             website[3] = new Option("d");
             website[4] = new Option("e");
             url = new Array;
             url[0] = "http://";
             url[1] = "http://";
             url[2] = "http://";
             url[3] = "http://";
             url[4] = "http://";
             }
     tot = website.length;
             for (i = lst; i > 0; i--)
             { document.ccDoubleList.ccDoubleZ.options[i] = null; }
             for (i = 0; i < tot; i++)
             { document.ccDoubleList.ccDoubleZ.options[i] = website[i]; }
             document.ccDoubleList.ccDoubleZ.options[0].selected = true;
     lst = website.length;
     }
// -->
</SCRIPT>
<SCRIPT language="JavaScript"><!--
with (document) {
     writeln('<CENTER>');
     writeln('<TABLE BORDER=3 BGCOLOR=#ffffff CELLPADDING=3 CELLSPACING=0>');
     writeln('<TR><TD COLSPAN=3><FORM NAME="ccDoubleList">');
     writeln('<CENTER><FONT SIZE=4 COLOR=#808080 FACE=ARIAL>');
     writeln('<font color="Green">Двойное меню</font></FONT></CENTER>');
     writeln('</TD></TR><TR><TD ALIGN=LEFT>');
     writeln('<FONT SIZE=3 COLOR=#808080 FACE=ARIAL><B><font color="Navy"><center>Меню</font></B></FONT><BR>');
     writeln('<SELECT NAME="ccBitsyG" onChange="changeMenu(this.form)">');
     tot = ccselect.length;
         for (i = 0; i < tot; i++)
         writeln("<OPTION>" +ccselect[i]);
     writeln("</SELECT>");
     writeln('</TD><TD>');
     writeln('<FONT SIZE=3 COLOR=#808080 FACE=ARIAL><B><font color="Blue"><center>Подменю</font></B></FONT><BR>');
     writeln('<SELECT NAME="ccDoubleZ">');
         for (i = 0; i < maxLength; i++)
         writeln("<OPTION>" +website[i]);
         writeln("</SELECT>");
         for (i = maxLength; i > trueLength; i--)
         { ccDoubleList.ccDoubleZ.options[i] = null; }
     writeln('</TD><TD VALIGN=center><A HREF =  "javascript:changePage();">');
     writeln('<font size="+3" color="Green"><b>GO</b></font></a>');
     writeln('</TD></TR>');
     changeMenu();
     writeln('</FORM>');
     writeln('</TABLE><P><BR><P>');
     writeln('</CENTER>');
     }
// -->
</SCRIPT>
</center>




Категория: Мои файлы | Добавил: ModeratoR | Теги: Скрипты для сайта, title, меню
Просмотров: 503 | Загрузок: 0