куда вставлять????
Установка: 1. скачать архив MENU.rar
2. загрузить картинки и js файлы в корень сайта
3. Вставить это
Code
1 <script type="text/javascript" src="jquery-1.2.6.pack.js"></script>
2 <script type="text/javascript" src="ddaccordion.js">
3 </script>
4 <script type="text/javascript">
5 ddaccordion.init({
6 headerclass: "submenuheader", //Shared CSS class name of headers group
7 contentclass: "submenu", //Shared CSS class name of contents group
8 revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseover
9 mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
10 collapseprev: true, //Collapse previous content (so only one open at any time)? true/false
11 defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
12 onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
13 animatedefault: false, //Should contents open by default be animated into view?
14 persiststate: true, //persist state of opened contents within browser session?
15 toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
16 togglehtml: ["suffix", "<img src='plus.gif' class='statusicon' />", "<img src='minus.gif' class='statusicon' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively ["position", "html1", "html2"] (see docs)
17 animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
18 oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
19 //do nothing
20 },
21 onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
22 //do nothing
23 }
24 })
25
26 </script>
27
28 <style type="text/css">
29
30 .glossymenu{
31 margin: 5px 0;
32 padding: 0;
33 width: 170px; /*width of menu*/
34 border: 1px solid #9A9A9A;
35 border-bottom-width: 0;
36 }
37
38 .glossymenu a.menuitem{
39 background: black url(glossyback.gif) repeat-x bottom left;
40 font: bold 14px "Lucida Grande", "Trebuchet MS", Verdana, Helvetica, sans-serif;
41 color: white;
42 display: block;
43 position: relative; /*To help in the anchoring of the ".statusicon" icon image*/
44 width: auto;
45 padding: 4px 0;
46 padding-left: 10px;
47 text-decoration: none;
48 }
49
50 .glossymenu a.menuitem:visited, .glossymenu .menuitem:active{
51 color: white;
52 }
53
54 .glossymenu a.menuitem .statusicon{ /*CSS for icon image that gets dynamically added to headers*/
55 position: absolute;
56 top: 5px;
57 right: 5px;
58 border: none;
59 }
60
61 .glossymenu a.menuitem:hover{
62 background-image: url(glossyback2.gif);
63 }
64
65 .glossymenu div.submenu{ /*DIV that contains each sub menu*/
66 background: white;
67 }
68
69 .glossymenu div.submenu ul{ /*UL of each sub menu*/
70 list-style-type: none;
71 margin: 0;
72 padding: 0;
73 }
74
75 .glossymenu div.submenu ul li{
76 border-bottom: 1px solid blue;
77 }
78
79 .glossymenu div.submenu ul li a{
80 display: block;
81 font: normal 13px "Lucida Grande", "Trebuchet MS", Verdana, Helvetica, sans-serif;
82 color: black;
83 text-decoration: none;
84 padding: 2px 0;
85 padding-left: 10px;
86 }
87
88 .glossymenu div.submenu ul li a:hover{
89 background: #DFDCCB;
90 colorz: white;
91 }
92
93 </style>
94
95 <div class="glossymenu">
96 <a class="menuitem" href="ССЫЛКА">ПРИМЕР</a>
97 <a class="menuitem submenuheader" href="ССЫЛКА" >ПРИМЕР</a>
98 <div class="submenu">
99 <ul>
100 <li><a href="ССЫЛКА">ПРИМЕР</a></li>
101 <li><a href="ССЫЛКА">ПРИМЕР</a></li>
102 <li><a href="ССЫЛКА">ПРИМЕР</a></li>
103 <li><a href="ССЫЛКА">ПРИМЕР</a></li>
104 <li><a href="ССЫЛКА">ПРИМЕР</a></li>
105 <li><a href="ССЫЛКА">ПРИМЕР</a></li>
106 <li><a href="ССЫЛКА">ПРИМЕР</a></li>
107 </ul>
108 </div>
109 <a class="menuitem" href="ССЫЛКА">ПРИМЕР</a>
110 <a class="menuitem" href="ССЫЛКА">ПРИМЕР</a>
111 <a class="menuitem submenuheader" href="ССЫЛКА">ПРИМЕР</a>
112 <div class="submenu">
113 <ul>
114 <li><a href="ССЫЛКА">ПРИМЕР</a></li>
115 <li><a href="ССЫЛКА">ПРИМЕР</a></li>
116 <li><a href="ССЫЛКА">ПРИМЕР</a></li>
117 <li><a href="ССЫЛКА">ПРИМЕР</a></li>
118 <li><a href="ССЫЛКА">ПРИМЕР</a></li>
119 <li><a href="ССЫЛКА">ПРИМЕР</a></li>
120 </ul>
121 </div>
122 <a class="menuitem" href="ССЫЛКА" style="border-bottom-width: 0">ПРИМЕР</a>
Пoдcвeткa oт АDСкопировать код | Переносить строки