Buen día, estoy intentando meter en una misma pagina (php) dos script, la cosa es que separados sirven los dos, pero juntos ninguno, lo he intentado llamándolo por php de otra carpeta y sin resultado.

¿Alguien me podría ayudar?
Gracias de ante mano.
0
Puntos
1045
Visitas
3
Resp
Por maltripeo1 hace 11 años
Novice
Respuesta #1
hola buenas! especifica a que script te refieres? si te refieres a dos funciones claro que se puede siempre que las llames de una manera distinta te deben de funcionar las dos

si quieres deja la funciones en este tema y le echamos un ojo a ver donde esta el conflicto (utiliza el botón código del editor para compartir tu código)
5
Puntos
Por zeuskx hace 11 años
Mods
Respuesta #2
PRIMERO

		<script type="text/javascript">
			$(function() {
				
				var jmpressOpts	= {
					animation		: { transitionDuration : '0.8s' }
				};
				
				$( '#jms-slideshow' ).jmslideshow( $.extend( true, { jmpressOpts : jmpressOpts }, {
					autoplay	: true,
					bgColorSpeed: '0.8s',
					arrows		: false
				}));
				
			});
		</script>

SEGUNDO 

        <script type="text/javascript">
            $(function() {
				/**
				* for each menu element, on mouseenter, 
				* we enlarge the image, and show both sdt_active span and 
				* sdt_wrap span. If the element has a sub menu (sdt_box),
				* then we slide it - if the element is the last one in the menu
				* we slide it to the left, otherwise to the right
				*/
                $('#sdt_menu > li').bind('mouseenter',function(){
					var $elem = $(this);
					$elem.find('img')
						 .stop(true)
						 .animate({
							'width':'170px',
							'height':'170px',
							'left':'0px'
						 },400,'easeOutBack')
						 .andSelf()
						 .find('.sdt_wrap')
					     .stop(true)
						 .animate({'top':'140px'},500,'easeOutBack')
						 .andSelf()
						 .find('.sdt_active')
					     .stop(true)
						 .animate({'height':'170px'},300,function(){
						var $sub_menu = $elem.find('.sdt_box');
						if($sub_menu.length){
							var left = '170px';
							if($elem.parent().children().length == $elem.index()+1)
								left = '-170px';
							$sub_menu.show().animate({'left':left},200);
						}	
					});
				}).bind('mouseleave',function(){
					var $elem = $(this);
					var $sub_menu = $elem.find('.sdt_box');
					if($sub_menu.length)
						$sub_menu.hide().css('left','0px');
					
					$elem.find('.sdt_active')
						 .stop(true)
						 .animate({'height':'0px'},300)
						 .andSelf().find('img')
						 .stop(true)
						 .animate({
							'width':'0px',
							'height':'0px',
							'left':'85px'},400)
						 .andSelf()
						 .find('.sdt_wrap')
						 .stop(true)
						 .animate({'top':'25px'},500);
				});
            });
        </script>
0
Puntos
Por maltripeo1 hace 11 años
Novice
Respuesta #3
Has revisado que se incluyan las librerías correctamente?

Has revisado si la página te muestra algún error? (si usas Chrome puedes pulsar Ctrl + Shift + J y se te abre una ventanita que te muestra en rojo los errores)

Saludos
0
Puntos
Por jonni09lo hace 11 años
Master
Para comentar Inicia sesión o Regístrate
Phpres 2025@ All rights reserved.
Utilizamos cookies para mejorar la navegación en el sitio. Más información Aceptar