/***************************************************************************** Scroll de noticias. Script creado por Tunait! (21/8/2003) Última modificación 27/3/04 se añade la opción de omitir las fechas Si quieres usar este script en tu sitio eres libre de hacerlo con la condición de que permanezcan intactas estas líneas, osea, los créditos. No autorizo a publicar y ofrecer el código en sitios de script sin previa autorización Si quieres publicarlo, por favor, contacta conmigo. http://javascript.tunait.com/ tunait@yahoo.com ******************************************************************************/ var ancho = 402 //anchura del cuadro var alto = 110 //altura del cuadro var marco = 0 //0 para que notenga marco (borde) var fondo = 'green' //color de fondo del cuadro var pausilla = 0 //tiempo de la pausa en milisegundos (2000 = 2 segundos) var cursor = "default;" //cursor que se quiera sobre el cuadro var colTitular = 'yellow' //color del texto del titular var colTexto = 'yellow' // color del texto de la noticia var colFecha = 'red' //color del texto de la fecha var colEnlace = 'darkviolet' //color del texto del enlace var fuente = "Times New Roman" //fuente para los textos var tamTitular = '15' //tamaño de la fuente del titular var tamTexto = '13' //tamaño de la fuente del texto de la noticia var tamFecha = '13' // tamaño de la fuente de la fecha var tamEnlace = '13' // tamaño de la fuente del enlace var masInfo = true //Determina si se usa o no el enlace. true para usarlo. false para omitirlo var poneFecha = true //true para poner fecha. false para omitirla. Si no se quiere fecha, dejar las comillas vacías "" function noticia(titular,texto,fecha,enlace,destino){ this.titular = titular this.texto = texto this.fecha= fecha this.enlace = enlace this.destino = destino } var noticias = new Array() noticias[0]= new noticia("NUEVO CURSO PROFESORES","La Fundación Aprender organiza un nuevo módulo, el tercero, del Curso sobre Metodología Adecuada para la Enseñanza a Alumnos con Dificultades de Aprendizaje (Nivel III) ...","Sep-09","Docs/Curso Nivel III.pdf","blank") noticias[1]= new noticia("Colaboración Fundación - Institución Educativa SEK","Dentro de esta colaboración el Colegio SEK SANTA ISABEL cederá a la Fundación algunas de sus aulas para albergar el Centro C.O.R.A.T.","Sep-09","Noticias.html#009","") noticias[2]= new noticia("Curso sobre Dificultades Especificas de Aprendizaje","La Fundación Aprender imparte este curso en las instalaciones del Colegio Ágora de Madrid en 10 sesiones del 23/Sep. al 25/Nov. El curso está cofinanciado por el MEC y tiene concedidos 2 créditos europeos","Sep-09","Docs/Curso DEA Colegio Agora.pdf","blank") noticias[3]= new noticia("Presentación de la Fundación Aprender.","El pasado 27 de Mayo se ha presentado en Madrid la Fundación Aprender y sus Centros Educativos ...","May-09","Noticias.html#0008","") noticias[4]= new noticia("El Senado aprueba por unanimidad la moción de dislexia.","Presentada por la senadora del PP por Murica Mª Jose Nicolas se aprueba por unanimidad la moción de dislexia ...","Mar-09","Noticias.html#0007","") noticias[5]= new noticia("El Mercadillo de Santo Domingo.","La Fundación Aprender ha organizado durante los días 10, 11 y 12 de Marzo un mercadillo solidario ...","Mar-09","Noticias.html#0006","") noticias[6]= new noticia("'Mi primer sueldo para el primer Brot Madrid'","Bajo este epígrafe, Fernando Soler Peciña, se ha convertido en el socio colaborador mas joven de la Fundación Aprender...","Dic-08","Noticias.html#0005","") noticias[7]= new noticia("La Fundación Aprender clausura su Curso sobre Metodología adecuada para la enseñanza a alumnos con dificultades especificas de aprendizaje.","Se ha clausurado este curso, organizado por la F.A. y siguiendo sus actividades para la formación del profesorado ....","Nov-08","Noticias.html#0004","") var det = false function escribe(){ document.write ('
') document.write('
') document.write ('
') document.write ('
') document.write (noticias[0].titular) document.write ('
') document.write ('
') document.write (noticias[0].fecha) document.write ('
') document.write ('
') document.write (noticias[0].texto) document.write ('
') if(masInfo == true){ document.write ('más información...') } document.write ('
') document.write ('
') document.write ('
') document.write (noticias[1].titular) document.write ('
') document.write ('
') document.write (noticias[1].fecha) document.write ('
') document.write ('
') document.write (noticias[1].texto) document.write ('
') if(masInfo == true){ document.write ('más información...') } document.write ('
') document.write('
') document.write ('
') if(navigator.appName == "Netscape") {altoUno = document.getElementById('uno').offsetHeight} else {altoUno = document.getElementById('uno').clientHeight} document.getElementById('uno').onmouseover =function(){ det = true clearTimeout(tiempo) } document.getElementById('uno').onmouseout =function(){ det = false; clearTimeout(tiempo) escrolea() } document.getElementById('dos').onmouseover =function(){ det = true clearTimeout(tiempo) } document.getElementById('dos').onmouseout =function(){ det = false; clearTimeout(tiempo) escrolea() } } desp = 1 var cont = 1 var pos,pos2 function escrolea(){ pos = document.getElementById('uno').style.top pos = pos.replace(/px/,""); pos = pos.replace(/pt/,""); pos = new Number(pos); pos2 = document.getElementById('dos').style.top pos2 = pos2.replace(/px/,""); pos2 = pos2.replace(/pt/,""); pos2 = new Number(pos2); pos -= desp pos2 -= desp if (pos == desp){ var contenidos = "" document.getElementById('dos').style.top = alto + "px" document.getElementById('dos').childNodes[0].firstChild.nodeValue = noticias[cont].titular if(poneFecha == true){ document.getElementById('dos').childNodes[1].firstChild.nodeValue = noticias[cont].fecha } document.getElementById('dos').childNodes[2].firstChild.nodeValue = noticias[cont].texto if(masInfo == true){ document.getElementById('dos').childNodes[3].href = noticias[cont].enlace document.getElementById('dos').childNodes[3].target = noticias[cont].destino } document.getElementById('uno').style.top = 0 if(cont == noticias.length-1) {cont=0} else{ cont++ } pausa() return false } else{ if (pos2 == desp){ var contenidos = "" document.getElementById('uno').style.top = alto + "px" document.getElementById('uno').childNodes[0].firstChild.nodeValue = noticias[cont].titular if(poneFecha == true){ document.getElementById('uno').childNodes[1].firstChild.nodeValue = noticias[cont].fecha } document.getElementById('uno').childNodes[2].firstChild.nodeValue = noticias[cont].texto if(masInfo == true){ document.getElementById('uno').childNodes[3].href = noticias[cont].enlace document.getElementById('uno').childNodes[3].target = noticias[cont].destino } document.getElementById('dos').style.top = 0 if(cont == noticias.length-1) {cont=0} else{ cont++ } pausa() return false } else{ document.getElementById('uno').style.top = pos + "px" document.getElementById('dos').style.top = pos2 + "px" } } tiempo = window.setTimeout('escrolea()',50) } var tiempo function pausa() { clearTimeout(tiempo) if (det == false){ tiempo = setTimeout ('continuar()',2000) } } function continuar() { if(det == false) {escrolea()} } document.write('')