Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/02/2009, 09:11
JUANFM
 
Fecha de Ingreso: enero-2009
Ubicación: Alicante
Mensajes: 20
Antigüedad: 15 años, 3 meses
Puntos: 0
Problema y duda en ejecucion de scripts

Hola a todos. Mi problema es el siguiente. Estoy intentando poner en el index demi página 3 scripts uno para el cambio de imagen otro para hacer ventanas modales y otro para hacer un scroll de texto. Tengo problemas en que se ejecuten los dos ultimos y creo que es por el lugar donde he puesto que se cargen los scripts aqui teneis el codigo

<html>

<head>



window.onload = function(){Shadowbox.init();
};

</script>

<script type="text/javascript" src="scroll/archivos/scroll.js"></script>
<link rel="stylesheet" type="text/css" href="scroll/archivos/scroll.css"/>

<style type="text/css">
<!--
.gradualshine{
filter:alpha(opacity=100);
-moz-opacity:10;
}

#GALERIA {
position:absolute;
left:564px;
top:15px;
width:100;
height:153;
z-index:2;
}
#Layer1 {
position:absolute;
left:536px;
top:189px;
width:209px;
height:278px;
z-index:3;
}
-->
</style>
</head>

<body onload="escrolea()" topmargin="30" marginheight="0">


<div id="GALERIA"><a rel="shadowbox" title="Google.com" href="pagina"><img src="imagenes/menu0.gif" width="101" height="153" class="gradualshine" onMouseover="slowhigh(this)" onMouseout="slowlow(this)" ></a></div>


<div id="Layer1">
<div align="center">
<script>escribe()</script>
</div>
</div>
</body>

</html>

como veis en el head inicializo la funcion shadowbox

window.onload = function(){Shadowbox.init();};

Y en el body cargo la funcion para hacer scroll.

<body onload="escrolea()" topmargin="30" marginheight="0">

Por separado funcionan perfectamente pero juntas, en este caso asi colocadas solo me ejecuta o me carga la funcion para hacer scroll

¿porque puede ser? Gracias!