Ver Mensaje Individual
  #7 (permalink)  
Antiguo 24/06/2008, 08:31
sacep2003
 
Fecha de Ingreso: diciembre-2007
Mensajes: 3
Antigüedad: 16 años, 4 meses
Puntos: 0
Respuesta: prototype y jquery

Hola amigo por favor me podrías indicar como hiciste que funcione el prototype y jquery. Al igual que ti: coloque:

SOLO FUNCIONA EL JQUERY..DE ESTA MANERA

PAGINA QUE LLAMA LAS LIBRERIAS

<script> jQuery.noConflict(); </script>
<script src="../js/scriptaculous.js" type="text/javascript"></script>
<script src="../js/prototype.js" type="text/javascript"></script>
<script src="../js/jquery/jquery.js" type="text/javascript" language="javascript"></script>

FUNCION JQUERY
<script type="text/javascript">
var x;
x=jQuery(document);
x.ready(inicializarEventos);
function inicializarEventos()
{
var x;
x=jQuery("li");
x.hover(entra,sale);
x.click(editar);
}
function entra()
{
jQuery(this).css("background-color","#6495ed");
jQuery(this).css("color","white");
}
function sale()
{
jQuery(this).css("background-color","#fff");
jQuery(this).css("color","black");
}
function editar()
{
var pagina=jQuery("li");
pagina=jQuery(this).attr("id");
if (pagina==undefined)
{
document.location='../php-menu/index.php';
}else{
document.location='../php-'+pagina+'/index.php';
}
}

FUNCION PROTOTYPE
if (!document.frm_ingresa_empresa.txt_nombre.value)
{
new Effect.Pulsate('txt_nombre');
//alert('El Nombre de la empresa es incorrecto...');
document.frm_ingresa_empresa.txt_nombre.focus();
document.frm_ingresa_empresa.txt_nombre.select();
return false;