Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/06/2009, 08:16
Avatar de junarry
junarry
 
Fecha de Ingreso: marzo-2007
Ubicación: colombia
Mensajes: 113
Antigüedad: 17 años, 1 mes
Puntos: 0
Problema compatibilidad con lavalamp y Image Rotator

Hola a todos,

al grano!

miren tengo un menu hecho con lavalamp. este es el codigo que inserto en la pagina para el menu:

Código:
<script type="text/javascript" src="jquery-1.2.3.min.js"></script>
    <script type="text/javascript" src="jquery.easing.min.js"></script>
    <script type="text/javascript" src="jquery.lavalamp.min.js"></script>
    
    <script type="text/javascript">
        $(function(menu) {
            $("#1, #2, #3").lavaLamp({
                fx: "backout",
                speed: 700,
                click: function(event, menuItem) {
                    return false;
                }
            });
        });
    </script>
el menu lo saque de esta pagina, y me funciona bien!! http://www.martiniglesias.eu/blog/la...s-de-jquery/16

el problema es cuando inserto una seccion de noticias previas tambien hecho con javascrip y las librerias jquery. este es el codigo javascrip de las noticias:

Código:
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
    <script type="text/javascript">
$(document).ready(function() {	

	//Show Banner
	$(".main_image .desc").show(); //Show Banner
	$(".main_image .block").animate({ opacity: 0.85 }, 1 ); //Set Opacity

	//Click and Hover events for thumbnail list
	$(".image_thumb ul li:first").addClass('active'); 
	$(".image_thumb ul li").click(function(){ 
		//Set Variables
		var imgAlt = $(this).find('img').attr("alt"); //Get Alt Tag of Image
		var imgTitle = $(this).find('a').attr("href"); //Get Main Image URL
		var imgDesc = $(this).find('.block').html(); 	//Get HTML of block
		var imgDescHeight = $(".main_image").find('.block').height();	//Calculate height of block	
		
		if ($(this).is(".active")) {  //If it's already active, then...
			return false; // Don't click through
		} else {
			//Animate the Teaser				
			$(".main_image .block").animate({ opacity: 0, marginBottom: -imgDescHeight }, 250 , function() {
				$(".main_image .block").html(imgDesc).animate({ opacity: 0.85,	marginBottom: "0" }, 250 );
				$(".main_image img").attr({ src: imgTitle , alt: imgAlt});
			});
		}
		
		$(".image_thumb ul li").removeClass('active'); //Remove class of 'active' on all lists
		$(this).addClass('active');  //add class of 'active' on this list only
		return false;
		
	}) .hover(function(){
		$(this).addClass('hover');
		}, function() {
		$(this).removeClass('hover');
	});
			
	//Toggle Teaser
	$("a.collapse").click(function(){
		$(".main_image .block").slideToggle();
		$("a.collapse").toggleClass("show");
	});
	
});//Close Function
</script>
y lo saque de esta pagina: http://designm.ag/tutorials/image-rotator-css-jquery/ ... cuando voy a ejecutar la pagina, q por cierto lo estoy haciendo con MS web developer me da el siguiente error::

Error en tiempo de ejecución de Microsoft JScript: El objeto no acepta esta propiedad o método y me sombrea el codigo javascript del menu!!!

por que este error???.... que esta mal!!! cundo quito el codigo de las noticias previas funciona el menu, y cuando quito el del menu funciona el de las noticias!....pero nunca me funcionan al mismo tiempo!!

alguien q me ayude porfa!!