Jump to content

ivietel

Newbie
  • Posts

    3
  • Joined

  • Last visited

ivietel's Achievements

Explorer

Explorer (1/14)

0

Reputation

  1. К моему большому сожалению, не помогло. Мне кажется, что тут придется полностью код переделывать...
  2. Срочно нужна помощь! Есть следующий страница: <html> <head> <script> function toggleListOneA(eTarget){ eTarget.style.display == "none" ? eTarget.style.display = "block": eTarget.style.display = "none"; eTarget.style.color = 'black'; } </SCRIPT> </head> <body> <UL ID="idListOne" NAME="idListOne"> <LI onclick="toggleListOneA(this.children[0])" STYLE="cursor:hand;"> Список <UL ID="idListOneA" NAME="idListOneA" STYLE="display:none; cursor: default;"> <LI>Первый <LI>Второй </UL> </UL> </body> </html> То есть... Создается список, при нажатии на который отображается вложенный список. Но, в чем сама проблема. При нажатии на элементы списка (на "первый", "второй"), список вновь сворачивается. Как сделать так, чтобы список сворачивался при нажатии только на главный элемент (на "Список"), а при нажатии на "первый" и "второй" ничего не происходило? Пожалуйста помогите!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy