Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/12/2009, 17:07
inturias
 
Fecha de Ingreso: julio-2007
Ubicación: Bolivia, Cochabamba
Mensajes: 104
Antigüedad: 16 años, 10 meses
Puntos: 5
Mi script funciona pero no se muestra bien en IE7

Buenas tengo dos scripts en una pagina y hago la llamada de ambos al jquery por separado porque si llamo uno solo no funciona porque? nose..!!

pero 1 funciona perfectamente y el otro que es el menu no funciona bien, en el IE7 como que parpadea!! y en el Firefox se ve perfecto..

en el IE7 me sale que el MC no esta definido.. pero nose donde cambiar eso

este es el codigo del script que trae los problemas..

si pueden ayudarme porfa se lo agradeceria..

pueden ver la pagina en www.fulltec.com.bo/index.php

AYUDA!!!

Código:
$(function() {
	// Hide all the content except the first
	$('.accordian li:odd:gt(0)').hide();
	
	// Add a padding to the first link
	$('.accordian li:first').animate( {
		paddingLeft:"30px"
	} );
	
	// Add the dimension class to all the content
	$('.accordian li:odd').addClass('dimension');
	
	// Set the even links with an 'even' class
	$('.accordian li:even:even').addClass('even');
	
	// Set the odd links with a 'odd' class
	$('.accordian li:even:odd').addClass('odd');
	
	// Show the correct cursor for the links
	$('.accordian li:even').css('cursor', 'pointer');
	
	// Handle the click event
	$('.accordian li:even').click( function() {
		// Get the content that needs to be shown
		var cur = $(this).next();
		
		// Get the content that needs to be hidden
		var old = $('.accordian li:odd:visible');
		
		// Make sure the content that needs to be shown 
		// isn't already visible
		if ( cur.is(':visible') )
			return false;
		
		// Hide the old content
		old.slideToggle(500);
		
		// Show the new content
		cur.stop().slideToggle(500);
		
		// Animate (add) the padding in the new link
		$(this).stop().animate( {
			paddingLeft:"30px"
		} );
		
		// Animate (remove) the padding in the old link
		old.prev().stop().animate( {
			paddingLeft:"10px"
		} );
	} );
});