Tema: cumpleaños
Ver Mensaje Individual
  #15 (permalink)  
Antiguo 27/02/2009, 07:33
Avatar de Adler
Adler
Colaborador
 
Fecha de Ingreso: diciembre-2006
Mensajes: 4.671
Antigüedad: 18 años, 3 meses
Puntos: 126
Respuesta: cumpleaños

Hola

banrey, ¿Has hecho algo como esto?

Código javascript:
Ver original
  1. <script language="JavaScript1.2">
  2. var marqueewidth="500px"
  3. var marqueeheight="100px"
  4. var marqueespeed=1
  5. var pauseit=1
  6. statut = "publie"

Código asp:
Ver original
  1. <%
  2. ' conexión bd
  3. sql ="slect fecha from personas where Day(fecha) = "&dia&" and Month(fecha) = "&mes&""
  4. set rs = conn.execute(sql)
  5. if rs.eof = True or rs.bof = True then
  6. %>
  7.  
  8. var marqueecontent ='<p>Hoy nadie cumple años</p>'
  9.  
  10. <%
  11. else
  12. %>
  13.  
  14. var marqueecontent ='<p>' + <%do while not rs.eof%>'\n<a href="mailto:<%=mail%>"><font face=Arial size=1><%=nombre%></font></a><br>' +  
  15. <%
  16. rs.movenext
  17. loop
  18. %>
  19. '\n</p>'
  20.  
  21. <%
  22. end if
  23. %>
Código javascript:
Ver original
  1. marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1)
  2. var copyspeed=marqueespeed
  3. var pausespeed=(pauseit==0)? copyspeed: 0
  4. var iedom=document.all||document.getElementById
  5. var actualheight=''
  6. var cross_marquee, ns_marquee
  7.  
  8. function populate(){
  9. if (iedom){
  10. cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
  11. cross_marquee.style.top=parseInt(marqueeheight)+8+ "px"
  12. cross_marquee.innerHTML=marqueecontent
  13. actualheight=cross_marquee.offsetHeight
  14. }
  15. else if (document.layers){
  16. ns_marquee=document.ns_marquee.document.ns_marquee 2
  17. ns_marquee.top=parseInt(marqueeheight)+8
  18. ns_marquee.document.write(marqueecontent)
  19. ns_marquee.document.close()
  20. actualheight=ns_marquee.document.height
  21. }
  22. lefttime=setInterval("scrollmarquee()",20)
  23. }
  24. window.onload=populate
  25.  
  26. function scrollmarquee(){
  27.  
  28. if (iedom){
  29. if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
  30. cross_marquee.style.top=parseInt(cross_marquee.sty le.top)-copyspeed+"px"
  31. else
  32. cross_marquee.style.top=parseInt(marqueeheight)+8+ "px"
  33. }
  34. else if (document.layers){
  35. if (ns_marquee.top>(actualheight*(-1)+8))
  36. ns_marquee.top-=copyspeed
  37. else
  38. ns_marquee.top=parseInt(marqueeheight)+8
  39. }
  40. }
  41.  
  42. if (iedom||document.layers){
  43. with (document){
  44. if (iedom){
  45. write('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">')
  46. write('<div id="iemarquee" style="position:absolute;left:0px;top:0px;width:10 0%;">')
  47. write('</div></div>')
  48. }
  49. else if (document.layers){
  50. write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee">')
  51. write('<layer name="ns_marquee2" width='+marqueewidth+' height='+marqueeheight+' left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>')
  52. write('</ilayer>')
  53. }
  54. }
  55. }
  56. </script>

Suerte
__________________
Los formularios se envían/validan con un botón Submit
<input type="submit" value="Enviar" style="background-color:#0B5795; font:bold 10px verdana; color:#FFF;" />