Foros del Web » Programando para Internet » Javascript »

Como hacer panel de noticias..auxilio

Estas en el tema de Como hacer panel de noticias..auxilio en el foro de Javascript en Foros del Web. Saludos a tod@s, el caso es que necesito poner unas noticias en un cuadro de texto, con movimiento vertical contínuo para que se puedan leer ...
  #1 (permalink)  
Antiguo 13/08/2003, 09:41
 
Fecha de Ingreso: junio-2003
Mensajes: 41
Antigüedad: 20 años, 11 meses
Puntos: 0
Como hacer panel de noticias..auxilio

Saludos a tod@s, el caso es que necesito poner unas noticias en un cuadro de texto, con movimiento vertical contínuo para que se puedan leer a medida que avanzan, tal como el que tienen en la página principal de www.maestrosdelweb.com , yo lo que hice fue buscar el código fuente de aquella maravillosa solución y uniccamente substituir las frases a mostrarse, y no me sale, aca esta el código, antes de nada mil gracias por la ayuda !





/*
Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and TOS, visit http://www.dynamicdrive.com
Credit MUST stay intact
*/

//Specify the marquee's width (in pixels)
var marqueewidth=180
//Specify the marquee's height
var marqueeheight=400
//Specify the marquee's marquee speed (larger is faster 1-10)
var marqueespeed=1
//Pause marquee onMousever (0=no. 1=yes)?
var pauseit=1

//Specify the marquee's content
//Keep all content on ONE line, and backslash any single quotations (ie: that\'s great):

var marqueecontent='<font color="#FFCC00" size="1" face="Verdana, Arial, Helvetica, sans-serif"><img src="images/f.gif" width="5" height="5"> <a href="http://www.forosdelweb.com/s/msg147308.html" class="f" target="_blank">dudas sobre el include</a><br /><font color="#FFFFFF">en HTML</font><br /><br /><img src="images/f.gif" width="5" height="5"> <a href="http://www.forosdelweb.com/s/msg147307.html" class="f" target="_blank">Problemas con los gifs</a><br /><font color="#FFFFFF">en Diseño Gráfico</font><br /><br /><img src="images/f.gif" width="5" height="5"> <a href="http://www.forosdelweb.com/s/msg147306.html" class="f" target="_blank">logoff y recuperar mi cpntraseña</a><br /><font color="#FFFFFF">en Cold Fusion</font><br /><br /><img src="images/f.gif" width="5" height="5"> <a href="http://www.forosdelweb.com/s/msg147305.html" class="f" target="_blank">Como crear mi propio skin de WINAMP ?</a><br /><font color="#FFFFFF">en Multimedia</font><br /><br /><img src="images/f.gif" width="5" height="5"> <a href="http://www.forosdelweb.com/s/msg147304.html" class="f" target="_blank">Recoger datos BD y mandar en aspmail</a><br /><font color="#FFFFFF">en ASP</font><br /><br /><img src="images/f.gif" width="5" height="5"> <a href="http://www.forosdelweb.com/s/msg147303.html" class="f" target="_blank">ati + tV</a><br /><font color="#FFFFFF">en Hardware</font><br /><br /><img src="images/f.gif" width="5" height="5"> <a href="http://www.forosdelweb.com/s/msg147302.html" class="f" target="_blank">¿Cual es el mejor sistema de SMS?</a><br /><font color="#FFFFFF">en E-business</font><br /><br /><img src="images/f.gif" width="5" height="5"> <a href="http://www.forosdelweb.com/s/msg147301.html" class="f" target="_blank">Partir un texto en columnas y delimitarlo a x palabras</a><br /><font color="#FFFFFF">en ASP</font><br /><br /><img src="images/f.gif" width="5" height="5"> <a href="http://www.forosdelweb.com/s/msg147300.html" class="f" target="_blank">Mi radio de música en mi Web...</a><br /><font color="#FFFFFF">en HTML</font><br /><br /><img src="images/f.gif" width="5" height="5"> <a href="http://www.forosdelweb.com/s/msg147299.html" class="f" target="_blank">Problema Con Ftp</a><br /><font color="#FFFFFF">en Dominios y Hosting</font><br /><br /><img src="images/f.gif" width="5" height="5"> <a href="http://www.forosdelweb.com/s/msg147298.html" class="f" target="_blank">Problema con variables</a><br /><font color="#FFFFFF">en Flash</font><br /><br /><img src="images/f.gif" width="5" height="5"> <a href="http://www.forosdelweb.com/s/msg147297.html" class="f" target="_blank">finger y telnet con mandrake</a><br /><font color="#FFFFFF">en Linux</font><br /><br /><img src="images/f.gif" width="5" height="5"> <a href="http://www.forosdelweb.com/s/msg147296.html" class="f" target="_blank">¿Alguien me puede hacer una sencilla estructura de IF... ELSE?. Gracias.</a><br /><font color="#FFFFFF">en ASP</font><br /><br /><img src="images/f.gif" width="5" height="5"> <a href="http://www.forosdelweb.com/s/msg147295.html" class="f" target="_blank">Gana dinero usando buscadores</a><br /><font color="#FFFFFF">en E-business</font><br /><br /><img src="images/f.gif" width="5" height="5"> <a href="http://www.forosdelweb.com/s/msg147294.html" class="f" target="_blank">Pay per click español</a><br /><font color="#FFFFFF">en Proyectos e Ideas</font><br /><br /><img src="images/f.gif" width="5" height="5"> <a href="http://www.forosdelweb.com/s/msg147293.html" class="f" target="_blank">que le pasa a los NT?</a><br /><font color="#FFFFFF">en Windows</font><br /><br /><img src="images/f.gif" width="5" height="5"> <a href="http://www.forosdelweb.com/s/msg147291.html" class="f" target="_blank">html en div</a><br /><font color="#FFFFFF">en CSS</font><br /><br /></font><a href="http://www.forosdelweb.com/search.php?action=getnew" target="_blank" class="f">Ver todos los mensajes nuevos</a>'

////NO NEED TO EDIT BELOW THIS LINE////////////

marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) //slow speed down by 1 for NS
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
var actualheight=''
var cross_marquee, ns_marquee

function populate(){
if (iedom){
cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
cross_marquee.style.top=marqueeheight+8
cross_marquee.innerHTML=marqueecontent
actualheight=cross_marquee.offsetHeight
}
else if (document.layers){
ns_marquee=document.ns_marquee.document.ns_marquee 2
ns_marquee.top=marqueeheight+8
ns_marquee.document.write(marqueecontent)
ns_marquee.document.close()
actualheight=ns_marquee.document.height
}
lefttime=setInterval("scrollmarquee()",40)
}
window.onload=populate

function scrollmarquee(){

if (iedom){
if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
cross_marquee.style.top=parseInt(cross_marquee.sty le.top)-copyspeed
else
cross_marquee.style.top=marqueeheight+8
}
else if (document.layers){
if (ns_marquee.top>(actualheight*(-1)+8))
ns_marquee.top-=copyspeed
else
ns_marquee.top=marqueeheight+8
}
}

if (iedom||document.layers){
with (document){
if (iedom){
write('<div style="position:relative;width:'+marqueewidth+';he ight:'+marqueeheight+';overflow:hidden" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">')
write('<div id="iemarquee" style="position:absolute;left:0;top:0;width:100%;" >')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee">')
write('<layer name="ns_marquee2" width='+marqueewidth+' height='+marqueeheight+' left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>')
write('</ilayer>')
}
}
}
cualquier ayuda e binvenida
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 22:54.