Ver Mensaje Individual
  #4 (permalink)  
Antiguo 18/03/2006, 18:47
Avatar de xknown
xknown
 
Fecha de Ingreso: diciembre-2004
Ubicación: Cusco - Perú
Mensajes: 2.248
Antigüedad: 19 años, 4 meses
Puntos: 7
Define esta función antes de que las otras funciones carguen:
Código:
// Para mayor detalle ver: http://www.quirksmode.org/blog/archives/2005/10/_and_the_winner_1.html
addEvent = function ( obj, type, fn ) {
    if (obj.addEventListener)
        obj.addEventListener( type, fn, false );
    else if (obj.attachEvent) {
        obj["e"+type+fn] = fn;
        obj[type+fn] = function() { obj["e"+type+fn]( window.event ); }
        obj.attachEvent( "on"+type, obj[type+fn] );
    }
}
....
addEvent(window, 'load', init1);
....
addEvent(window, 'load', init2);
Saludos
__________________
Alex Concha
Buayacorp - Programación y Diseño