Está en la página 1de 3

$(function() { //acordion $( "#accordion" ).accordion({ event: "mouseover", autoHeight: false }); //botones $( "input:submit, button" ).

button(); //efectomenu vertical $('#menu_vertical li a').click(function(event){ var elem = $(this).next(); if(elem.is('ul')){ event.preventDefault(); $('#menu_vertical ul:visible').not(elem).slideUp(); elem.slideToggle(); } }); //visor de foto $.fx.speeds._default = 200; $( "#datos_curricula" ).dialog({ title: "Lista de Documentos", width: 450, modal: true, autoOpen: false, show: "escale" }); /*ventana modal*/ $( "#modal" ).click(function() { loading("#datos_curricula"); $( "#datos_curricula" ).dialog("open").load("curriculasLista.php"); return false; }); //ventana modal para contactos $.fx.speeds._default = 200; $( "#contactos_datos" ).dialog({ title: "Contctenos", width: 450, modal: true, autoOpen: false, show: "slide", hide: "slide", resizable: false }); }); function load_contactos(archivophp){ /*ventana modal*/ var position = $("#contactos").position(); loading("#contactos_datos"); $("#contactos_datos").dialog("option", "position", [position.left-400, posit ion.top+40]); $( "#contactos_datos" ).dialog( "option", "draggable", false ); $( "#contactos_datos" ).dialog("open").load(archivophp,function(){ $("#contacto-formulario").validate({ errorElement: "em",

errorPlacement: function(error, element) { error.appendTo( element.parent("td").next("td") ); }, rules: { txt_contacto_nombres: { required:true }, txt_contacto_correo: { required:true, email:true }, txt_contacto_asunto:{ required:true }, txta_contacto_mensaje:{ required:true }, } }); }); return false; } function cerrar(){ $("#contactos_datos").dialog("close").delay(10000); } function loading(div){ jQuery(div).html(" <div align='center' style='margin-top:50px;'><img src='.. /../images/loader.gif' style='border:none; '/></div>"); } function fn_busca(div, ruta,p1,p2,p3){ loading('#'+div+''); if(p1.length>0) p1= document.getElementById(''+p1+'').value; else p1=''; if(p2.length>0) p2= document.getElementById(''+p2+'').value; else p2=''; if(p3.length>0) p3= document.getElementById(''+p3+'').value; else p3=''; $('#'+div+'').load(ruta,{ p1:p1, p2:p2, p3:p3 }); } function fn_todo(div, ruta,p1,p2,p3){ loading('#'+div+''); if(p1.length>0) document.getElementById(''+p1+'').value=''; if(p2.length>0) document.getElementById(''+p2+'').value=''; if(p3.length>0) document.getElementById(''+p3+'').value=''; $('#'+div+'').load(ruta,{ p1:'', p2:'', p3:''

}); } function muestra_galeria(id_actual,div,ruta){ loading('#'+div+''); $('#'+div+'').load(ruta,{ id_actual:id_actual },function(){ $(".galeria").prettyPhoto() $(".carruselh").sliderkit({ shownavitems:5, start:1 }); }); }

También podría gustarte