Дерево с ветками
🕛 29.06.2006, 17:07
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Vertical expanding menu</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <script type="text/javascript"> <!-window.onload=montre; function montre(id) { var d = document.getElementById(id); for (var i = 1; i<=10; i++) { if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';} } if (d) {d.style.display='block';} } //-> </script> </head> <body> <dl id="menu"> <dt onclick="javascript:montre();"><a href="#">Menu 1</a></dt> <dt onclick="javascript:montre('smenu2');"><a href="#">Menu 2</a></dt> <dd id="smenu2"> - <a href="#">Sub Menu 2.1</a><br> - <a href="#">Sub Menu 2.2</a><br> - <a href="#">Sub Menu 2.3</a><br> </dd> </dl> <a href="https://stfw.ru/">stfw.ru</a> </body> </html>