Foros del Web » Programando para Internet » ASP Clásico »

scroll horizontal

Estas en el tema de scroll horizontal en el foro de ASP Clásico en Foros del Web. Buenos días, estoy trabajando en código con scroll para noticias en forma horizontal, lo tengo configurado para que solo muestre en este scroll las noticias ...
  #1 (permalink)  
Antiguo 14/01/2009, 05:00
Avatar de Cameron_2006  
Fecha de Ingreso: diciembre-2006
Mensajes: 248
Antigüedad: 17 años, 5 meses
Puntos: 0
scroll horizontal

Buenos días, estoy trabajando en código con scroll para noticias en forma horizontal, lo tengo configurado para que solo muestre en este scroll las noticias correspondientes a la última fecha, verticamente funciona bien porque los muestra todos, uno tras otro, pero horizaontalmente los muestra también todos pero al mismo tiempo, este es el código, espero que alguien pueda ayuradme y de una vez gracias.

<%


Dim sTxt, iSpeed, iTop, iLeft, iWidth, iHeight, sHtml1, sHtml2, sHtml4, strSQL,sMarquee
Dim conCurrent
Dim rstCurrent
Set conCurrent = CreateObject("ADODB.Connection")
Set rstCurrent = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT top 1 * FROM noticias ORDER BY fecha DESC"
Set rstCurrent = conCurrent.Execute(strSQL)

sHtml1 = "<P><FONT SIZE='-1' COLOR='Black'>"
sHtml2 = "<A HREF='../../masnoticia.asp?noti="
sHtml3 = "'>"
sHtml4 = "</A></FONT></P>"
sTxt = ""
rstCurrent.movefirst
do while not rstCurrent.eof
sTxt = sTxt & sHtml1 & rstCurrent("fecha") & " - " & sHtml2 & _
rstCurrent("id") & sHtml3 & rstCurrent("titulo") & sHtml4
rstCurrent.movenext
loop

iSpeed = 1
iTop = 0
iLeft = 0
iWidth = 600
iHeight =30

sMarquee="<MARQUEE onmouseover='this.stop();' " & _
"onmouseout='this.start();'direction=' left ' scrollamount='1' " & _
"scrolldelay='" & iSpeed & "' top='" & iTop & "' left='" & iLeft & _
"' width='" & iWidth & "' height='" & iHeight & "'>" & sTxt & "</MARQUEE>"

conCurrent.close
set conCurrent = Nothing
%>
<%=sMarquee%>
  #2 (permalink)  
Antiguo 14/01/2009, 11:44
Avatar de JuanRAPerez
Colaborador
 
Fecha de Ingreso: octubre-2003
Mensajes: 2.393
Antigüedad: 20 años, 7 meses
Puntos: 27
Respuesta: scroll horizontal

ummm
tu pregunta creo que no esta relacionada con programacion ASP dado que si se hace de una forma mas no asi de otra

un moderador evaluara tu duda y probablemente te meuvan al foro correspondiente

suerte
__________________
JuanRa Pérez
San Salvador, El Salvador
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 21:38.