Javascript-форум (https://javascript.ru/forum/)
-   jQuery (https://javascript.ru/forum/jquery/)
-   -   Не работает в ie (https://javascript.ru/forum/jquery/28376-ne-rabotaet-v-ie.html)

jeysmook 17.05.2012 10:13

Не работает в ie
 
Это код окна. Все работает идеально, но не в ie. Вместо того, чтобы закрывать окно, ie открывает корневую папку... Помогите пожалуйста.
------------------------------------------------------------------------
$(document).ready(function(){
	$('a[name=wind]').click(function(){
		var id = $(this).attr('href');
		var wind = document.createElement('div');
		wind.className = 'wind_body';
		wind.innerHTML = '<a href="" class="wind_close"></a>';
		document.body.appendChild(wind);
		$('body').css({overflow:'hidden'});
		$('.wind_body').fadeIn('slow');
		$(id).show();	
		$('.wind_body').append($(id));
		return false;	
	});
	$('a.wind_close').click(function(){
		$('body').css({overflow:'auto'});
		$('.wind_body').remove();
		return false;
	});
});


.wind_body{
display:none;
width:100%; height:100%;
background:url(img/bg.png);
position:fixed; z-index:999; top:0; left:0;
overflow:auto;
}
.wind_content{
display:none; width:60%; margin:auto auto;
padding:10px; background:url(img/close.png); color:#1d1d1d;
}
a.wind_close{
display:block; width:20%; height:100%;
background:url(img/close.png) no-repeat 100% 0;
position:fixed; z-index:9999; top:20px; right:40px;
}


-----------------------------------------------------------------------
<a href="#conteiner1" name="wind" id="wind">первый блок</a>
<div class="wind_content" id="conteiner1">первый блок</div>
<a href="#conteiner14" name="wind" id="wind">второй блок</a>
<div class="wind_content" id="conteiner14">второй блок</div>

bot87 17.05.2012 10:40

оформите код [ js ]....[/ js ]
В ie6 position:fixed не работает а вместо него relative,поэтому и отличия в сдвигах.Может отсюда проблемы

jeysmook 17.05.2012 10:44

bot87,
Сделал)
Так у меня не работает закрытие этого окна , вместо того, чтобы закрывать окно, ie открывает корневую папку...


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