Javascript-форум (https://javascript.ru/forum/)
-   Internet Explorer (https://javascript.ru/forum/css-html-internet-explorer/)
-   -   Проблемы с DIV'ами (выпадающее меню) в ie6 (https://javascript.ru/forum/css-html-internet-explorer/6135-problemy-s-div%27ami-vypadayushhee-menyu-v-ie6.html)

techno77 12.11.2009 18:55

Проблемы с DIV'ами (выпадающее меню) в ie6
 
Друзья, требуется помощь.

Есть скрипт, обрабатывающий по нажатию на текст, отображения блока DIV с элементами подменю.

function menuhide(menunum)
  {
    var currentmenu = document.getElementById("navbody" + menunum);
    var topmenu = document.getElementById("topbody" + menunum);
    currentmenu.style.visibility = 'hidden';
	currentmenu.style.height = 0;
   	topmenu.style.visibility = 'hidden';
	topmenu.style.height = 0;
  }

  function menushow(menunum)
  {
	  
	  
    var currentmenu = document.getElementById("navbody" + menunum);
    var topmenu = document.getElementById("topbody" + menunum);
	if (currentmenu.style.visibility=='visible')
	{
    	currentmenu.style.visibility = 'hidden';
		currentmenu.style.height = 0;
    	topmenu.style.visibility = 'hidden';
		topmenu.style.height = 0;
	}
	else
	{
    	currentmenu.style.visibility = 'visible';
		currentmenu.style.height = '120%';
    	topmenu.style.visibility = 'visible';
		topmenu.style.height = '120%';
	}
  }


Беда в том, что в ie6 это работает, но вылезает подменю высотой 3px, где не видно никаких ссылок.

Как решить этот вопрос?

Aleko 28.04.2010 11:06

Html в студию пожалуйста)

Skipp 28.04.2010 11:48

currentmenu.style.height = '120%';
topmenu.style.height = '120%';

Попробуй в этих строках вместо процентов поставить пиксели.


Часовой пояс GMT +3, время: 23:15.