<?xml version="1.0" encoding="iso-8859-1" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Foro Vida Una : Cáculo del tiempo que has vivido</title>
  <link>https://www.vidauna.com/</link>
  <description><![CDATA[This is an XML content feed of; Foro Vida Una : C&#243;digos JavaScript : Cáculo del tiempo que has vivido]]></description>
  <pubDate>Fri, 03 Apr 2026 23:40:37 +0000</pubDate>
  <lastBuildDate>Tue, 19 May 2009 08:06:24 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://www.vidauna.com/RSS_post_feed.asp?TID=246</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Foro Vida Una]]></title>
   <url>https://www.vidauna.com/images/vidauna_logo.gif</url>
   <link>https://www.vidauna.com/</link>
  </image>
  <item>
   <title><![CDATA[Cáculo del tiempo que has vivido : Este curioso c&#243;digo te ense&#241;a...]]></title>
   <link>https://www.vidauna.com/cculo-del-tiempo-que-has-vivido_topic246_post812.html#812</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.vidauna.com/member_profile.asp?PF=110">Programador</a><br /><strong>Subject:</strong> 246<br /><strong>Posted:</strong> 19&nbsp;Mayo&nbsp;2009 at 8:06am<br /><br />Este curioso código te enseña un formulario que calcula el tiempo que llevas vivido y te enseña un reloj que da vueltas alrededor del cursor:<DIV>&nbsp;</DIV><DIV>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;<BR>&lt;META http-equiv=Content-Language content=es&gt;<BR>&lt;META http-equiv=Content-Type content="text/html; charset=windows-1252"&gt;<BR>&lt;META content="lb, default" name="Microsoft Border"&gt;<BR>&lt;META content="MSHTML 6.00.2800.1106" name=GENERATOR&gt;&lt;/HEAD&gt;<BR>&lt;BODY text=#8f6030 vLink=#ae0000 aLink=#3333ff link=#cc6600 bgColor=#c0c0c0&gt;<BR>&lt;STYLE type=text/css&gt;&lt;/STYLE&gt;</DIV><DIV>&lt;META content="MSHTML 6.00.2800.1141" name=GENERATOR&gt;&lt;TD valign="top"&gt;<BR>&lt;DIV&gt;<BR>&lt;P align=center&gt;&lt;FONT face=Tahoma color=white&gt;&amp;nbsp;&lt;FONT size=2&gt;&lt;B&gt;&lt;FONT<BR>size=6&gt;Cálculo del tiempo vivido&lt;/FONT&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;<BR>&lt;P align=center&gt;&lt;FONT face=Tahoma color=green size=4&gt;&lt;B&gt;¿Quieres comprobar<BR>cuánto tiempo has vivido hasta ahora?&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;<BR>&lt;P align=center&gt;&lt;FONT face=Tahoma color=green size=4&gt;&lt;B&gt;Es divertido... y hace<BR>pensar&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;<BR>&lt;P align=center&gt;&amp;nbsp;&lt;/P&gt;<BR>&lt;P align=center&gt;&lt;FONT face=Tahoma color=yellow size=4&gt;&lt;B&gt;Ingresa la fecha de tu<BR>nacimiento...&lt;/B&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;<BR>&lt;DIV&gt;&lt;FONT color=#0000ff size=2&gt;<BR>&lt;CENTER&gt;&lt;FONT face=Tahoma color=#8f6030&gt;&lt;EM&gt;<BR>&lt;SCRIPT language=Javascript&gt;</DIV><DIV>function start() {<BR>&nbsp;document.forms&#091;0&#093;.day.value=""<BR>&nbsp;document.forms&#091;0&#093;.month.value=""<BR>&nbsp;document.forms&#091;0&#093;.year.value=""<BR>&nbsp;document.forms&#091;0&#093;.age.value=""<BR>&nbsp;document.forms&#091;0&#093;.months.value=""<BR>&nbsp;document.forms&#091;0&#093;.weeks.value=""<BR>&nbsp;document.forms&#091;0&#093;.answer.value=""<BR>&nbsp;document.forms&#091;0&#093;.hours.value=""<BR>&nbsp;document.forms&#091;0&#093;.min.value=""<BR>&nbsp;document.forms&#091;0&#093;.sec.value=""<BR>&nbsp;document.forms&#091;0&#093;.bday.value=""<BR>&nbsp;document.forms&#091;0&#093;.milli.value=""<BR>}</DIV><DIV>function run() {</DIV><DIV>&nbsp;var ap;<BR>&nbsp;dd=document.forms&#091;0&#093;.day.value<BR>&nbsp;mm=document.forms&#091;0&#093;.month.value<BR>&nbsp;yy=document.forms&#091;0&#093;.year.value</DIV><DIV>&nbsp;with(document.forms&#091;0&#093;) {</DIV><DIV>&nbsp;&nbsp;ap=parseInt(ampm.selectedIndex);<BR>&nbsp;&nbsp;hr=parseInt(hrs.value);</DIV><DIV>&nbsp;&nbsp;if(hr&lt;=0 &amp;&amp; hr&gt;=13) {<BR>&nbsp;&nbsp;&nbsp;ap=null;alert("asdf")<BR>&nbsp;&nbsp;}<BR>&nbsp;}</DIV><DIV>&nbsp;main="válida"</DIV><DIV>&nbsp;if ((mm&lt;1) || (mm&gt;12) || (dd&lt;1) || (dd&gt;31) || (yy&lt;1) ||(mm=="") || (dd=="") || (yy==""))&nbsp; main="inválida"<BR>&nbsp;else if (((mm==4) || (mm==6) || (mm==9) || (mm==11)) &amp;&amp; (dd&gt;30)) main="inválida"<BR>&nbsp;else if (mm==2) {<BR>&nbsp;&nbsp;if (dd&gt;29)main="inválida"<BR>&nbsp;&nbsp;else if((dd&gt;28) &amp;&amp; (!lyear(yy)))&nbsp;&nbsp; main="inválida"<BR>&nbsp;}<BR>&nbsp;else if((yy&gt;9999)||(yy&lt;0)) main="inválida"<BR>&nbsp;else main=main</DIV><DIV>&nbsp;if(main=="válida") {</DIV><DIV>&nbsp;&nbsp;function leapyear(a) {<BR>&nbsp;&nbsp;&nbsp;if(((a%4==0)&amp;&amp;(a%100!=0))||(a%400==0)) return true<BR>&nbsp;&nbsp;&nbsp;else return false<BR>&nbsp;&nbsp;}</DIV><DIV>&nbsp;&nbsp;days = new Date()<BR>&nbsp;&nbsp;gdate = days.getDate()<BR>&nbsp;&nbsp;gmonth = days.getMonth()<BR>&nbsp;&nbsp;gyear = days.getFullYear()</DIV><DIV>&nbsp;&nbsp;age=gyear-yy;</DIV><DIV>&nbsp;&nbsp;if((mm==(gmonth+1))&amp;&amp;(dd&lt;=parseInt(gdate))) {<BR>&nbsp;&nbsp;&nbsp;age=age<BR>&nbsp;&nbsp;} else {<BR>&nbsp;&nbsp;&nbsp;if(mm&lt;=(gmonth)) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;age=age<BR>&nbsp;&nbsp;&nbsp;} else {<BR>&nbsp;&nbsp;&nbsp;&nbsp;age=age-1<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}</DIV><DIV>&nbsp;&nbsp;if(age==0) age=age</DIV><DIV>&nbsp;&nbsp;document.forms&#091;0&#093;.age.value=" Tienes " + age + " años y"</DIV><DIV>&nbsp;&nbsp;if(mm&lt;=(gmonth+1)) age=age-1<BR>&nbsp;&nbsp;if((mm==(gmonth+1))&amp;&amp;(dd&gt;parseInt(gdate))) age=age+1</DIV><DIV>&nbsp;&nbsp;var m=0;<BR>&nbsp;&nbsp;var n=0;</DIV><DIV>&nbsp;&nbsp;if (mm==12) { n=31-dd; }<BR>&nbsp;&nbsp;if (mm==11) { n=61-dd;}<BR>&nbsp;&nbsp;if (mm==10) { n=92-dd; }<BR>&nbsp;&nbsp;if (mm==9) { n=122-dd;&nbsp; }<BR>&nbsp;&nbsp;if (mm==8) { n=153-dd;}<BR>&nbsp;&nbsp;if (mm==7) { n=184-dd;}<BR>&nbsp;&nbsp;if (mm==6) { n=214-dd; }<BR>&nbsp;&nbsp;if (mm==5) { n=245-dd;&nbsp; }<BR>&nbsp;&nbsp;if (mm==4) { n=275-dd;&nbsp; }<BR>&nbsp;&nbsp;if (mm==3) { n=306-dd;&nbsp; }<BR>&nbsp;&nbsp;if (mm==2) { n=334-dd; if(leapyear(yy)) n=n+1 }<BR>&nbsp;&nbsp;if (mm==1) { n=365-dd;&nbsp; if (leapyear(yy)) n=n+1 }</DIV><DIV>&nbsp;&nbsp;if (gmonth==1) m=31<BR>&nbsp;&nbsp;if (gmonth==2) {<BR>&nbsp;&nbsp;&nbsp;m=59<BR>&nbsp;&nbsp;&nbsp;if (leapyear(gyear)) m=m+1;<BR>&nbsp;&nbsp;}</DIV><DIV>&nbsp;&nbsp;if (gmonth==3) { m=90;&nbsp; if (leapyear(gyear)) m=m+1; }<BR>&nbsp;&nbsp;if (gmonth==4) { m=120;&nbsp; if (leapyear(gyear)) m=m+1; }<BR>&nbsp;&nbsp;if (gmonth==5) { m=151 ; if (leapyear(gyear)) m=m+1; }<BR>&nbsp;&nbsp;if (gmonth==6) { m=181;&nbsp; if (leapyear(gyear)) m=m+1; }<BR>&nbsp;&nbsp;if (gmonth==7) { m=212 ; if (leapyear(gyear)) m=m+1; }<BR>&nbsp;&nbsp;if (gmonth==8) { m=243&nbsp; ;if (leapyear(gyear)) m=m+1; }<BR>&nbsp;&nbsp;if (gmonth==9) { m=273;&nbsp; if (leapyear(gyear)) m=m+1; }<BR>&nbsp;&nbsp;if (gmonth==10) { m=304;&nbsp; if (leapyear(gyear)) m=m+1; }<BR>&nbsp;&nbsp;if (gmonth==11) { m=334;&nbsp; if (leapyear(gyear)) m=m+1; }<BR>&nbsp;&nbsp;if (gmonth==12) { m=365;&nbsp; if (leapyear(gyear)) m=m+1; }</DIV><DIV>&nbsp;&nbsp;totdays=(parseInt(age)*365)<BR>&nbsp;&nbsp;totdays+=age/4<BR>&nbsp;&nbsp;totdays=parseInt(totdays)+gdate+m+n<BR>&nbsp;&nbsp;document.forms&#091;0&#093;.answer.value="" + totdays +" dias "</DIV><DIV>&nbsp;&nbsp;// month</DIV><DIV>&nbsp;&nbsp;months=age*12<BR>&nbsp;&nbsp;months+=12-parseInt(mm)<BR>&nbsp;&nbsp;months+=gmonth<BR>&nbsp;&nbsp;document.forms&#091;0&#093;.months.value=months+" meses"</DIV><DIV>&nbsp;&nbsp;var p=0;<BR>&nbsp;&nbsp;//weeks<BR>&nbsp;&nbsp;if (gmonth==1) p=31+gdate</DIV><DIV>&nbsp;&nbsp;if (gmonth==2) {<BR>&nbsp;&nbsp;&nbsp;p=59+gdate<BR>&nbsp;&nbsp;&nbsp;if (leapyear(gyear)) m=m+1;<BR>&nbsp;&nbsp;}</DIV><DIV>&nbsp;&nbsp;if (gmonth==3) { p=90+gdate;&nbsp; if (leapyear(gyear)) p=p+1; }<BR>&nbsp;&nbsp;if (gmonth==4) { p=120+gdate;&nbsp; if (leapyear(gyear)) p=p+1; }<BR>&nbsp;&nbsp;if (gmonth==5) { p=151+gdate ; if (leapyear(gyear)) p=p+1; }<BR>&nbsp;&nbsp;if (gmonth==6) { p=181+gdate;&nbsp; if (leapyear(gyear)) p=p+1; }<BR>&nbsp;&nbsp;if (gmonth==7) { p=212+gdate ; if (leapyear(gyear)) p=p+1; }<BR>&nbsp;&nbsp;if (gmonth==8) { p=243+gdate&nbsp; ;if (leapyear(gyear)) p=p+1; }<BR>&nbsp;&nbsp;if (gmonth==9) { p=273+gdate;&nbsp; if (leapyear(gyear)) p=p+1; }<BR>&nbsp;&nbsp;if (gmonth==10) { p=304+gdate;&nbsp; if (leapyear(gyear)) p=p+1; }<BR>&nbsp;&nbsp;if (gmonth==11) { p=334+gdate;&nbsp; if (leapyear(gyear)) p=p+1; }<BR>&nbsp;&nbsp;if (gmonth==12) { p=365+gdate;&nbsp; if (leapyear(gyear)) p=p+1; }</DIV><DIV>&nbsp;&nbsp;weeks=totdays/7<BR>&nbsp;&nbsp;weeks+=" semanas"<BR>&nbsp;&nbsp;weeks=parseInt(weeks);<BR>&nbsp;&nbsp;document.forms&#091;0&#093;.weeks.value=weeks+" semanas"</DIV><DIV>&nbsp;&nbsp;// hours<BR>&nbsp;&nbsp;var time=new Date()<BR>&nbsp;&nbsp;ghour=time.getHours()<BR>&nbsp;&nbsp;gmin=time.getMinutes()<BR>&nbsp;&nbsp;gsec=time.getSeconds()</DIV><DIV>&nbsp;&nbsp;hour=((age*365)+n+p)*24<BR>&nbsp;&nbsp;hour+=(parseInt(age/4)*24)</DIV><DIV>&nbsp;&nbsp;if(ap==0){<BR>&nbsp;&nbsp;&nbsp;hour=hour-hr<BR>&nbsp;&nbsp;}else{<BR>&nbsp;&nbsp;&nbsp;if(ap==1){<BR>&nbsp;&nbsp;&nbsp;&nbsp;hour=hour-(11+hr)<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}</DIV><DIV>&nbsp;&nbsp;document.forms&#091;0&#093;.hours.value=hour+" horas"</DIV><DIV>&nbsp;&nbsp;var min<BR>&nbsp;&nbsp;//minutes<BR>&nbsp;&nbsp;min=(hour*60)+gmin<BR>&nbsp;&nbsp;document.forms&#091;0&#093;.min.value=min+" minutos"<BR>&nbsp;&nbsp;sec=(min*60)+gsec<BR>&nbsp;&nbsp;document.forms&#091;0&#093;.sec.value=sec+" segundos"<BR>&nbsp;&nbsp;var millisec;<BR>&nbsp;&nbsp;var gmil;</DIV><DIV>&nbsp;&nbsp;gmil = days.getMilliseconds();<BR>&nbsp;&nbsp;millisec=(sec*1000)+gmil;<BR>&nbsp;&nbsp;document.forms&#091;0&#093;.milli.value=millisec+" milisegundos";<BR>&nbsp;&nbsp;mm=mm-1<BR>&nbsp;&nbsp;var r</DIV><DIV>&nbsp;&nbsp;if(mm==0) r=1<BR>&nbsp;&nbsp;if (mm==1) r=31<BR>&nbsp;&nbsp;if (mm==2) {<BR>&nbsp;&nbsp;&nbsp;r=59<BR>&nbsp;&nbsp;&nbsp;if (leapyear(gyear)) m=m+1;<BR>&nbsp;&nbsp;}</DIV><DIV>&nbsp;&nbsp;if (mm==3) { r=90;&nbsp; if (leapyear(gyear)) r=r+1; }<BR>&nbsp;&nbsp;if (mm==4) { r=120;&nbsp; if (leapyear(gyear)) r=r+1; }<BR>&nbsp;&nbsp;if (mm==5) { r=151 ; if (leapyear(gyear)) r=r+1; }<BR>&nbsp;&nbsp;if (mm==6) { r=181;&nbsp; if (leapyear(gyear)) r=r+1; }<BR>&nbsp;&nbsp;if (mm==7) { r=212 ; if (leapyear(gyear)) r=r+1; }<BR>&nbsp;&nbsp;if (mm==8) { r=243&nbsp; ;if (leapyear(gyear)) r=r+1; }<BR>&nbsp;&nbsp;if (mm==9) { r=273;&nbsp; if (leapyear(gyear)) r=r+1; }<BR>&nbsp;&nbsp;if (mm==10) { r=304;&nbsp; if (leapyear(gyear)) r=r+1; }<BR>&nbsp;&nbsp;if (mm==11) { r=334;&nbsp; if (leapyear(gyear)) r=r+1; }<BR>&nbsp;&nbsp;if (mm==12) { r=365;&nbsp; if (leapyear(gyear)) r=r+1; }</DIV><DIV>&nbsp;&nbsp;mm=mm+1;<BR>&nbsp;&nbsp;r=parseInt(r)+parseInt(dd);</DIV><DIV>&nbsp;&nbsp;if(mm&gt;(gmonth+1)){<BR>&nbsp;&nbsp;&nbsp;bday=r-m-gdate<BR>&nbsp;&nbsp;} else {<BR>&nbsp;&nbsp;&nbsp;if(mm==(gmonth+1)&amp;&amp;(gdate&lt;dd)){<BR>&nbsp;&nbsp;&nbsp;&nbsp;bday=(r-m-gdate)<BR>&nbsp;&nbsp;&nbsp;} else {<BR>&nbsp;&nbsp;&nbsp;&nbsp;if((leapyear(gyear))&amp;&amp;((mm&gt;2)&amp;&amp;(dd&lt;29))) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a=366<BR>&nbsp;&nbsp;&nbsp;&nbsp;} else {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a=365<BR>&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;bday=a+(r-m-gdate)<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}</DIV><DIV>&nbsp;&nbsp;nhour=24-parseInt(ghour)<BR>&nbsp;&nbsp;nmin=60-parseInt(gmin)<BR>&nbsp;&nbsp;nsec=60-parseInt(gsec)</DIV><DIV>&nbsp;&nbsp;function lyear(a) {<BR>&nbsp;&nbsp;&nbsp;if(((a%4==0) &amp;&amp; (a%100!=0)) || (a%400==0)) return true;<BR>&nbsp;&nbsp;&nbsp;else return false;<BR>&nbsp;&nbsp;}</DIV><DIV>&nbsp;&nbsp;mm=parseInt(mm)<BR>&nbsp;&nbsp;dd=parseInt(dd)<BR>&nbsp;&nbsp;yy=parseInt(yy)</DIV><DIV>&nbsp;&nbsp;if ((mm&lt;1) || (mm&gt;12) || (dd&lt;1) || (dd&gt;31) || (yy&lt;1) ||(mm==" ") || (dd==" ") || (yy==" "))<BR>&nbsp;&nbsp;&nbsp;main="inválida"<BR>&nbsp;&nbsp;else<BR>&nbsp;&nbsp;&nbsp;if (((mm==4) || (mm==6) || (mm==9) || (mm==11)) &amp;&amp; (dd&gt;30)) main="inválida"<BR>&nbsp;&nbsp;&nbsp;else if (mm==2) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;if (dd&gt;29) main="inválida"<BR>&nbsp;&nbsp;&nbsp;&nbsp;else if((dd&gt;28) &amp;&amp; (!lyear(yy))) main="inválida"<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;else main=main</DIV><DIV>&nbsp;&nbsp;if(main=="válida") {<BR>&nbsp;&nbsp;&nbsp;var m<BR>&nbsp;&nbsp;&nbsp;if (mm==1) n=31+1<BR>&nbsp;&nbsp;&nbsp;if (mm==2) n=59+1<BR>&nbsp;&nbsp;&nbsp;if (mm==3) n=90+1<BR>&nbsp;&nbsp;&nbsp;if (mm==4) n=120+1<BR>&nbsp;&nbsp;&nbsp;if (mm==5) n=151+1<BR>&nbsp;&nbsp;&nbsp;if (mm==6) n=181+1<BR>&nbsp;&nbsp;&nbsp;if (mm==7) n=212+1<BR>&nbsp;&nbsp;&nbsp;if (mm==8) n=243+1<BR>&nbsp;&nbsp;&nbsp;if (mm==9) n=273+1<BR>&nbsp;&nbsp;&nbsp;if (mm==10) n=304+1<BR>&nbsp;&nbsp;&nbsp;if (mm==11) n=334+1<BR>&nbsp;&nbsp;&nbsp;if (mm==12) n=365+1</DIV><DIV>&nbsp;&nbsp;&nbsp;if((mm==1)||(mm==3)||(mm==5)||(mm==7)||(mm==8)||(mm==10)||(mm==12))<BR>&nbsp;&nbsp;&nbsp;&nbsp;n+=31+dd<BR>&nbsp;&nbsp;&nbsp;else if((mm==4)||(mm==6)||(mm==9)||(mm==11))<BR>&nbsp;&nbsp;&nbsp;&nbsp;n+=31+dd+1<BR>&nbsp;&nbsp;&nbsp;else if(mm==2) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;if(lyear(yy)) n+=29+dd-3<BR>&nbsp;&nbsp;&nbsp;&nbsp;else if(!lyear(yy)) n+=28+dd-1<BR>&nbsp;&nbsp;&nbsp;}</DIV><DIV>&nbsp;&nbsp;&nbsp;fours = yy/4<BR>&nbsp;&nbsp;&nbsp;hunds = yy/100<BR>&nbsp;&nbsp;&nbsp;fhunds = yy/400<BR>&nbsp;&nbsp;&nbsp;var iDay</DIV><DIV>&nbsp;&nbsp;&nbsp;iDay=(yy + n + fours - hunds + fhunds) % 7;<BR>&nbsp;&nbsp;&nbsp;iDay=parseInt(iDay)</DIV><DIV>&nbsp;&nbsp;&nbsp;switch(iDay) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;case 1 : document.forms&#091;0&#093;.age.value +=" naciste un domingo" ; break<BR>&nbsp;&nbsp;&nbsp;&nbsp;case 2 : document.forms&#091;0&#093;.age.value +=" naciste en lunes" ; break<BR>&nbsp;&nbsp;&nbsp;&nbsp;case 3 : document.forms&#091;0&#093;.age.value +=" naciste en martes" ; break<BR>&nbsp;&nbsp;&nbsp;&nbsp;case 4 : document.forms&#091;0&#093;.age.value +=" naciste en miércoles" ; break<BR>&nbsp;&nbsp;&nbsp;&nbsp;case 5 : document.forms&#091;0&#093;.age.value +=" naciste en jueves" ; break<BR>&nbsp;&nbsp;&nbsp;&nbsp;case 6 : document.forms&#091;0&#093;.age.value +=" naciste en viernes" ; break<BR>&nbsp;&nbsp;&nbsp;&nbsp;case 7 : document.forms&#091;0&#093;.age.value +=" naciste en sábado" ; break<BR>&nbsp;&nbsp;&nbsp;&nbsp;case 0 : document.forms&#091;0&#093;.age.value +=" naciste en sábado" ; break<BR>&nbsp;&nbsp;&nbsp;}</DIV><DIV>&nbsp;&nbsp;} else {</DIV><DIV>&nbsp;&nbsp;&nbsp;document.forms&#091;0&#093;.age.value +="Fecha "+main<BR>&nbsp;&nbsp;}</DIV><DIV>&nbsp;&nbsp;if(((bday==366)&amp;&amp;(leapyear(yy)))||((bday==365)&amp;&amp;(!leapyear(yy)))) {<BR>&nbsp;&nbsp;&nbsp;document.forms&#091;0&#093;.bday.value="¡Hoy es tu cumpleaños!"<BR>&nbsp;&nbsp;&nbsp;alert("Feliz Aniversario!")<BR>&nbsp;&nbsp;} else {<BR>&nbsp;&nbsp;&nbsp;document.forms&#091;0&#093;.bday.value=bday+" días "+ nhour+" horas "+nmin+" minutos "+nsec+" segundos"<BR>&nbsp;&nbsp;&nbsp;setTimeout("run()",1)<BR>&nbsp;&nbsp;}</DIV><DIV>&nbsp;} else {</DIV><DIV>&nbsp;&nbsp;document.forms&#091;0&#093;.age.value="Fecha "+main<BR>&nbsp;&nbsp;document.forms&#091;0&#093;.months.value=""<BR>&nbsp;&nbsp;document.forms&#091;0&#093;.weeks.value=""<BR>&nbsp;&nbsp;document.forms&#091;0&#093;.answer.value=""<BR>&nbsp;&nbsp;document.forms&#091;0&#093;.hours.value=""<BR>&nbsp;&nbsp;document.forms&#091;0&#093;.min.value=""<BR>&nbsp;&nbsp;document.forms&#091;0&#093;.sec.value=""<BR>&nbsp;&nbsp;document.forms&#091;0&#093;.bday.value=""<BR>&nbsp;&nbsp;document.forms&#091;0&#093;.milli.value=""<BR>&nbsp;}</DIV><DIV>}</DIV><DIV>&lt;/SCRIPT&gt;<BR>&lt;/EM&gt;&lt;/FONT&gt;&lt;EM&gt;&lt;FONT face=Tahoma&gt;&lt;/FONT&gt;&lt;/EM&gt;<BR>&lt;FORM&gt;<BR>&lt;H1&gt;&lt;EM&gt;&lt;FONT face=Tahoma&gt;&lt;FONT color=#8f6030 size=3&gt;&lt;FONT color=#8f6030&gt;Día:<BR>&lt;INPUT size=3 name=day&gt; &lt;FONT color=#8f6030&gt;Mes: &lt;INPUT size=3 name=month&gt; &lt;FONT<BR>color=#8f6030&gt;Año: &lt;INPUT size=6 name=year&gt; &lt;FONT color=#8f6030&gt;Hora: &lt;INPUT<BR>size=6 value=00 name=hrs&gt; &lt;SELECT size=1 name=ampm&gt; &lt;OPTION<BR>&nbsp; selected&gt;AM&lt;/OPTION&gt; &lt;OPTION&gt;PM&lt;/OPTION&gt;&lt;/SELECT&gt;<BR>&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/H1&gt;&lt;FONT color=#8f6030<BR>size=3&gt;&lt;FONT color=#8f6030&gt;&lt;FONT color=#8f6030&gt;&lt;FONT color=#8f6030&gt;&lt;FONT<BR>color=#8f6030&gt;<BR>&lt;P&gt;&lt;EM&gt;&lt;FONT face=Tahoma&gt;&lt;INPUT onclick=run() type=button value="Calcular " name=start&gt;<BR>&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/FONT&gt;<BR>&lt;P&gt;&lt;EM&gt;&lt;FONT face=Tahoma color=#8f6030&gt;&lt;INPUT style="WIDTH: 339px; HEIGHT: 21px"<BR>size=55 value="tu edad va a aparecer aquí" name=age&gt; &lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;<BR>&lt;CENTER&gt;<BR>&lt;H1&gt;&lt;EM&gt;&lt;FONT face=Tahoma color=#8f6030 size=4&gt;Llevas vivido todo este<BR>tiempo...&lt;/FONT&gt;&lt;/EM&gt;&lt;/H1&gt;&lt;/CENTER&gt;<BR>&lt;H1&gt;&lt;EM&gt;&lt;FONT face=Tahoma color=#8f6030 size=4&gt;En meses: &lt;INPUT size=30<BR>name=months&gt; &lt;/FONT&gt;&lt;/EM&gt;&lt;/H1&gt;<BR>&lt;H1&gt;<BR>&lt;P&gt;<BR>&lt;CENTER&gt;&lt;EM&gt;&lt;FONT face=Tahoma color=#8f6030 size=4&gt;En semanas: &lt;INPUT size=30<BR>name=weeks&gt; &lt;/FONT&gt;&lt;/EM&gt;&lt;/CENTER&gt;<BR>&lt;P&gt;<BR>&lt;CENTER&gt;&lt;EM&gt;&lt;FONT face=Tahoma color=#8f6030 size=4&gt;En días: &lt;INPUT size=30<BR>name=answer&gt; &lt;/FONT&gt;&lt;/EM&gt;&lt;/CENTER&gt;<BR>&lt;P&gt;<BR>&lt;CENTER&gt;&lt;EM&gt;&lt;FONT face=Tahoma color=#8f6030 size=4&gt;En horas: &lt;INPUT size=30<BR>name=hours&gt; &lt;/FONT&gt;&lt;/EM&gt;&lt;/CENTER&gt;<BR>&lt;P&gt;<BR>&lt;CENTER&gt;&lt;EM&gt;&lt;FONT face=Tahoma color=#8f6030 size=4&gt;En minutos: &lt;INPUT size=30<BR>name=min&gt; &lt;/FONT&gt;&lt;/EM&gt;&lt;/CENTER&gt;<BR>&lt;P&gt;<BR>&lt;CENTER&gt;&lt;EM&gt;&lt;FONT face=Tahoma color=#8f6030 size=4&gt;En segundos: &lt;INPUT size=30<BR>name=sec&gt; &lt;/FONT&gt;&lt;/EM&gt;&lt;/CENTER&gt;<BR>&lt;P&gt;<BR>&lt;CENTER&gt;&lt;EM&gt;&lt;FONT face=Tahoma color=#8f6030 size=4&gt;En milisegundos: &lt;INPUT<BR>size=30 name=milli&gt; &lt;/FONT&gt;&lt;/EM&gt;&lt;/CENTER&gt;<BR>&lt;P&gt;<BR>&lt;CENTER&gt;&lt;EM&gt;&lt;FONT face=Tahoma color=red size=4&gt;¡¡Esto es lo que te queda de<BR>vida!!&lt;/FONT&gt; &lt;/EM&gt;&lt;/CENTER&gt;&lt;EM&gt;&lt;FONT face=Tahoma&gt;&lt;INPUT<BR>style="LEFT: 227px; WIDTH: 253px; TOP: 378px; HEIGHT: 22px" size=35 name=bday&gt;<BR>&lt;/FONT&gt;&lt;/EM&gt;&lt;/H1&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;<BR>&lt;BLOCKQUOTE&gt;&lt;EM&gt;&lt;FONT face=Tahoma&gt;&lt;FONT color=#8f6030 size=3&gt;&lt;FONT<BR>&nbsp; color=#8f6030&gt;&lt;FONT color=#8f6030&gt;&lt;FONT<BR>&nbsp; color=#8f6030&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/FORM&gt;&lt;EM&gt;&lt;FONT<BR>&nbsp; face=Tahoma color=#8f6030 size=3&gt;&lt;/BLOCKQUOTE&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/CENTER&gt;&lt;/FONT&gt;&lt;/DIV&gt;<BR>&lt;CENTER&gt;&lt;EM&gt;&lt;FONT face=Tahoma color=yellow size=4&gt;Ja, ja, ja,<BR>......................era una broma, es lo que falta para tu cumpleaños!!!!<BR>&lt;DIV align=center&gt;&lt;BR&gt;&lt;BR&gt;<BR>&lt;P&gt;&lt;FONT face=Tahoma&gt;&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="Tahoma black" color=green<BR>size=3&gt;&lt;B&gt;&lt;FONT size=3&gt;Amigos y amigas, aprovechen cada segundo de vida como si<BR>fuese el último: amando, siendo solidarios, compartiendo afectos y emociones con<BR>los demás, construyendo hacia dentro y hacia fuera de nosotros<BR>mismos.&lt;BR&gt;&lt;BR&gt;Nuestra vida vale lo que &lt;I&gt;pesan&lt;/I&gt; nuestras conductas, pero se<BR>mide por el reloj que marca el ritmo y el paso de nuestros días... que espero y<BR>deseo que sean muchos, provechosos y felices.&lt;BR&gt;&lt;BR&gt;<BR>&lt;CENTER&gt;&lt;EM&gt;&lt;FONT face="Courier black" color=red size=3&gt;"Quien mata el tiempo no<BR>es un asesino, es un suicida"&lt;/FONT&gt;&lt;/B&gt;&lt;/FONT&gt;<BR>&lt;P&gt;&lt;/P&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;<BR>&lt;CENTER&gt;&lt;EM&gt;&lt;FONT face="Tahoma black" color=yellow size=4&gt;Modificado por<BR>cheo5857<BR>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;<BR>&lt;DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;<BR>&lt;TABLE cellSpacing=0 cellPadding=0 width="100%" border=0&gt;<BR>&nbsp; &lt;TBODY&gt;<BR>&nbsp; &lt;TR&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;TD&gt;&lt;/SCRIPT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;!-- saved from url=(0022)http://internet.e-mail --&gt;&lt;!-- saved from url=(0087)file://C:\WINDOWS\Archivos%20temporales%20de%20Internet\Content.IE5\WP2RO5MV\Clock.html --&gt;&lt;!-- saved from url=(0022)http://internet.e-mail --&gt;&lt;!-- saved from url=(0022)http://internet.e-mail --&gt;<BR>&lt;META content="MSHTML 6.00.2600.0" name=GENERATOR&gt;<BR>&lt;SCRIPT language=JavaScript&gt;</DIV><DIV>dCol='yellow';//date colour.<BR>fCol='red';//face colour.<BR>sCol='black';//seconds colour.<BR>mCol='blue';//minutes colour.<BR>hCol='white';//hours colour.<BR>ClockHeight=100;<BR>ClockWidth=100;<BR>ClockFromMouseY=105;<BR>ClockFromMouseX=0;</DIV><DIV>//Alter nothing below! Alignments will be lost!</DIV><DIV>d=new Array(". Domingo",". Lunes",". Martes",". Miércoles",". Jueves",". Viernes",". Sábado");<BR>m=new Array("de Enero del","de Febrero del","de Marzo del","de Abril del","de Mayo del","de Junio del","de Julio","de Agosto del","de Septiembre del","de Octubre del","de Noviembre del","de Diciembre del");<BR>date=new Date();<BR>day=date.getDate();<BR>year=date.getYear();<BR>if (year &lt; 2000) year=year+1900;<BR>TodaysDate=" "+d&#091;date.getDay()&#093;+" "+day+" "+m&#091;date.getMonth()&#093;+" "+year;<BR>D=TodaysDate.split('');<BR>H='°°°°';<BR>H=H.split('');<BR>M='°°°°°';<BR>M=M.split('');<BR>S='°°°°°';<BR>S=S.split('');<BR>Face='1 2 3 4 5 6 7 8 9 10 11 12';<BR>font='Tahoma';<BR>size=2;<BR>speed=0.2;<BR>ns=(document.layers);<BR>ie=(document.all);<BR>Face=Face.split(' ');<BR>n=Face.length;<BR>a=size*10;<BR>ymouse=0;<BR>xmouse=0;<BR>scrll=0;<BR>props="&lt;font face="+font+" size="+size+" color="+fCol+"&gt;&lt;B&gt;";<BR>props2="&lt;font face="+font+" size="+size+" color="+dCol+"&gt;&lt;B&gt;";<BR>Split=360/n;<BR>Dsplit=360/D.length;<BR>HandHeight=ClockHeight/4.5<BR>HandWidth=ClockWidth/4.5<BR>HandY=3;<BR>HandX=0;<BR>scrll=0;<BR>step=0.04;<BR>currStep=0;<BR>y=new Array();x=new Array();Y=new Array();X=new Array();<BR>for (i=0; i &lt; n; i++){y<em>=0;x<em>=0;Y<em>=0;X<em>=0}<BR>Dy=new Array();Dx=new Array();DY=new Array();DX=new Array();<BR>for (i=0; i &lt; D.length; i++){Dy<em>=0;Dx<em>=0;DY<em>=0;DX<em>=0}<BR>if (ns){<BR>for (i=0; i &lt; D.length; i++)<BR>document.write('&lt;layer name="nsDate'+i+'" top=0 left=0 height='+a+' width='+a+'&gt;&lt;center&gt;'+props2+D<em>+'&lt;/font&gt;&lt;/center&gt;&lt;/layer&gt;');<BR>for (i=0; i &lt; n; i++)<BR>document.write('&lt;layer name="nsFace'+i+'" top=0 left=0 height='+a+' width='+a+'&gt;&lt;center&gt;'+props+Face<em>+'&lt;/font&gt;&lt;/center&gt;&lt;/layer&gt;');<BR>for (i=0; i &lt; S.length; i++)<BR>document.write('&lt;layer name=nsSeconds'+i+' top=0 left=0 width=15 height=15&gt;&lt;font face=Arial size=3 color='+sCol+'&gt;&lt;center&gt;&lt;b&gt;'+S<em>+'&lt;/b&gt;&lt;/center&gt;&lt;/font&gt;&lt;/layer&gt;');<BR>for (i=0; i &lt; M.length; i++)<BR>document.write('&lt;layer name=nsMinutes'+i+' top=0 left=0 width=15 height=15&gt;&lt;font face=Arial size=3 color='+mCol+'&gt;&lt;center&gt;&lt;b&gt;'+M<em>+'&lt;/b&gt;&lt;/center&gt;&lt;/font&gt;&lt;/layer&gt;');<BR>for (i=0; i &lt; H.length; i++)<BR>document.write('&lt;layer name=nsHours'+i+' top=0 left=0 width=15 height=15&gt;&lt;font face=Arial size=3 color='+hCol+'&gt;&lt;center&gt;&lt;b&gt;'+H<em>+'&lt;/b&gt;&lt;/center&gt;&lt;/font&gt;&lt;/layer&gt;');<BR>}<BR>if (ie){<BR>document.write('&lt;div id="Od" style="position:absolute;top:0px;left:0px"&gt;&lt;div style="position:relative"&gt;');<BR>for (i=0; i &lt; D.length; i++)<BR>document.write('&lt;div id="ieDate" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center"&gt;'+props2+D<em>+'&lt;/B&gt;&lt;/font&gt;&lt;/div&gt;');<BR>document.write('&lt;/div&gt;&lt;/div&gt;');<BR>document.write('&lt;div id="Of" style="position:absolute;top:0px;left:0px"&gt;&lt;div style="position:relative"&gt;');<BR>for (i=0; i &lt; n; i++)<BR>document.write('&lt;div id="ieFace" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center"&gt;'+props+Face<em>+'&lt;/B&gt;&lt;/font&gt;&lt;/div&gt;');<BR>document.write('&lt;/div&gt;&lt;/div&gt;');<BR>document.write('&lt;div id="Oh" style="position:absolute;top:0px;left:0px"&gt;&lt;div style="position:relative"&gt;');<BR>for (i=0; i &lt; H.length; i++)<BR>document.write('&lt;div id="ieHours" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+hCol+';text-align:center;font-weight:bold"&gt;'+H<em>+'&lt;/div&gt;');<BR>document.write('&lt;/div&gt;&lt;/div&gt;');<BR>document.write('&lt;div id="Om" style="position:absolute;top:0px;left:0px"&gt;&lt;div style="position:relative"&gt;');<BR>for (i=0; i &lt; M.length; i++)<BR>document.write('&lt;div id="ieMinutes" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+mCol+';text-align:center;font-weight:bold"&gt;'+M<em>+'&lt;/div&gt;');<BR>document.write('&lt;/div&gt;&lt;/div&gt;')<BR>document.write('&lt;div id="Os" style="position:absolute;top:0px;left:0px"&gt;&lt;div style="position:relative"&gt;');<BR>for (i=0; i &lt; S.length; i++)<BR>document.write('&lt;div id="ieSeconds" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+sCol+';text-align:center;font-weight:bold"&gt;'+S<em>+'&lt;/div&gt;');<BR>document.write('&lt;/div&gt;&lt;/div&gt;')<BR>}<BR>(ns)?window.captureEvents(Event.MOUSEMOVE):0;<BR>function Mouse(evnt){<BR>ymouse = (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY;<BR>xmouse = (ns)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX;<BR>}<BR>(ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse;<BR>function ClockAndAssign(){<BR>time = new Date ();<BR>secs = time.getSeconds();<BR>sec = -1.57 + Math.PI * secs/30;<BR>mins = time.getMinutes();<BR>min = -1.57 + Math.PI * mins/30;<BR>hr = time.getHours();<BR>hrs = -1.575 + Math.PI * hr/6+Math.PI*parseInt(time.getMinutes())/360;<BR>if (ie){<BR>Od.style.top=window.document.body.scrollTop;<BR>Of.style.top=window.document.body.scrollTop;<BR>Oh.style.top=window.document.body.scrollTop;<BR>Om.style.top=window.document.body.scrollTop;<BR>Os.style.top=window.document.body.scrollTop;<BR>}<BR>for (i=0; i &lt; n; i++){<BR>var F=(ns)?document.layers&#091;'nsFace'+i&#093;:ieFace<em>.style;<BR>F.top=y<em> + ClockHeight*Math.sin(-1.0471 + i*Split*Math.PI/180)+scrll;<BR>F.left=x<em> + ClockWidth*Math.cos(-1.0471 + i*Split*Math.PI/180);<BR>}<BR>for (i=0; i &lt; H.length; i++){<BR>var HL=(ns)?document.layers&#091;'nsHours'+i&#093;:ieHours<em>.style;<BR>HL.top=y<em>+HandY+(i*HandHeight)*Math.sin(hrs)+scrll;<BR>HL.left=x<em>+HandX+(i*HandWidth)*Math.cos(hrs);<BR>}<BR>for (i=0; i &lt; M.length; i++){<BR>var ML=(ns)?document.layers&#091;'nsMinutes'+i&#093;:ieMinutes<em>.style;<BR>ML.top=y<em>+HandY+(i*HandHeight)*Math.sin(min)+scrll;<BR>ML.left=x<em>+HandX+(i*HandWidth)*Math.cos(min);<BR>}<BR>for (i=0; i &lt; S.length; i++){<BR>var SL=(ns)?document.layers&#091;'nsSeconds'+i&#093;:ieSeconds<em>.style;<BR>SL.top=y<em>+HandY+(i*HandHeight)*Math.sin(sec)+scrll;<BR>SL.left=x<em>+HandX+(i*HandWidth)*Math.cos(sec);<BR>}<BR>for (i=0; i &lt; D.length; i++){<BR>var DL=(ns)?document.layers&#091;'nsDate'+i&#093;:ieDate<em>.style;<BR>DL.top=Dy<em> + ClockHeight*1.5*Math.sin(currStep+i*Dsplit*Math.PI/180)+scrll;<BR>DL.left=Dx<em> + ClockWidth*1.5*Math.cos(currStep+i*Dsplit*Math.PI/180);<BR>}<BR>currStep-=step;<BR>}<BR>function Delay(){<BR>scrll=(ns)?window.pageYOffset:0;<BR>Dy&#091;0&#093;=Math.round(DY&#091;0&#093;+=((ymouse)-DY&#091;0&#093;)*speed);<BR>Dx&#091;0&#093;=Math.round(DX&#091;0&#093;+=((xmouse)-DX&#091;0&#093;)*speed);<BR>for (i=1; i &lt; D.length; i++){<BR>Dy<em>=Math.round(DY<em>+=(Dy&#091;i-1&#093;-DY<em>)*speed);<BR>Dx<em>=Math.round(DX<em>+=(Dx&#091;i-1&#093;-DX<em>)*speed);<BR>}<BR>y&#091;0&#093;=Math.round(Y&#091;0&#093;+=((ymouse)-Y&#091;0&#093;)*speed);<BR>x&#091;0&#093;=Math.round(X&#091;0&#093;+=((xmouse)-X&#091;0&#093;)*speed);<BR>for (i=1; i &lt; n; i++){<BR>y<em>=Math.round(Y<em>+=(y&#091;i-1&#093;-Y<em>)*speed);<BR>x<em>=Math.round(X<em>+=(x&#091;i-1&#093;-X<em>)*speed);<BR>}<BR>ClockAndAssign();<BR>setTimeout('Delay()',20);<BR>}<BR>if (ns||ie)window.onload=Delay;<BR>&lt;/SCRIPT&gt;<BR>...................<BR>&lt;/FONT&gt;&lt;/EM&gt;&lt;/CENTER&gt;&lt;/EM&gt;&lt;/CENTER&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/CENTER&gt;&lt;/BODY&gt;&lt;/HTML&gt;</DIV>]]>
   </description>
   <pubDate>Tue, 19 May 2009 08:06:24 +0000</pubDate>
   <guid isPermaLink="true">https://www.vidauna.com/cculo-del-tiempo-que-has-vivido_topic246_post812.html#812</guid>
  </item> 
 </channel>
</rss>