Javascript-форум (https://javascript.ru/forum/)
-   jQuery (https://javascript.ru/forum/jquery/)
-   -   В Chrome, IE, Opera не работает (https://javascript.ru/forum/jquery/13582-v-chrome-ie-opera-ne-rabotaet.html)

dimaan777 04.12.2010 23:51

В Chrome, IE, Opera не работает
 
Добрый вечер. У меня такой вопрос: я сделал переключаемые вкладки* без перезагрузки страницы, но почему они работают только в FF ?

*
http://www.youtube.com/watch?v=aIuNIQBXiXA

dr.5y51em 06.12.2010 02:45

:haha:

Код то покажи

dimaan777 06.12.2010 17:27

<script language="javascript">
	$(document).ready(function()
		{
		$('.information_table').css('height','150px');
		$('.it_td1 > div:first').css('backgroundImage','url(img/bg-a_div-t.jpg');
		$('#downl > div').css('marginLeft','100px');
		$('#downl > div > h3').css('marginLeft','-10px');
		$('#downl > div:last').css('marginRight','100px');
		$('#downl > div:last > h3').css('marginLeft','-40px');
		$('#ov').hide();
		$('#marks').hide();
		$('#comm').hide();
		$('#downl > div > a:has(img)').fadeTo(1,0.7).mouseover(function() {$(this).fadeTo(10,1.5);}).mouseleave(function() 
		{$(this).fadeTo(100,0.7);});
		$('.it_td1 > div:first').click(div1);
		$('.it_div2').click(div2);
		$('.it_div3').click(div3);
		$('.it_div4').click(div4);
		});
		
		function div1() {  
		  $(this).css('backgroundImage','url(img/bg-a_div-t.jpg)');
		  $('.it_td1 > div:gt(0)').css('backgroundImage','url(img/bg_div-t.jpg)');		
		  $('#ov,#marks,#comm').fadeOut(10);
		  $('#downl *').fadeIn(150);
		  $('#downl > div').css('marginLeft','100px');
		  $('#downl > div > h3').css('marginLeft','-10px');
		  $('#downl > div:last').css('marginRight','100px');
		  $('#downl > div:last > h3').css('marginLeft','-40px');		  		  	  	  
		} 
		
		 function div2() {
		  $(this).css('backgroundImage','url(img/bg-a_div-t.jpg)');
		  $('.it_td1 > div:gt(1),.it_td1 > div:lt(1)').css('backgroundImage','url(img/bg_div-t.jpg)');		  		
		  $('#downl *,#marks,#comm').fadeOut(10);
		  $('#ov').fadeIn(150);		  
		}
		
		function div3() {
		  $(this).css('backgroundImage','url(img/bg-a_div-t.jpg)');
		  $('.it_td1 > div:gt(2),.it_td1 > div:lt(2)').css('backgroundImage','url(img/bg_div-t.jpg)');		  		
		  $('#downl *,#ov,#comm').fadeOut(10);
		  $('#marks').fadeIn(150);		  
		} 
		
		function div4() {	
		  $(this).css('backgroundImage','url(img/bg-a_div-t.jpg)'); 
		  $('.it_td1 > div:lt(3)').css('backgroundImage','url(img/bg_div-t.jpg)');			   
		  $('#downl *,#ov,#marks').fadeOut(10);
		  $('#comm').fadeIn(150);		  		  		  
		}
    </script>

dimaan777 06.12.2010 20:16

Меня интересует проблема с изображение, вот код:
$('#downl > div > a:has(img)').fadeTo(1,0.7).mouseover(function() {$(this).fadeTo(10,1.5);}).mouseleave(function()
 {$(this).fadeTo(100,0.7);});


В ФФ все работает отлично, он в осталых браузерах не работает !


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