
10th March 2008, 07:16 AM
|
|
Junior Member
|
|
Join Date: Mar 2008
Posts: 1
Credits: 0
|
|
THis script is very easy. Can i get your birth Date. If you where born on 1994, march 4th, 7:00 pm (guessing). here is the code Simply copy and paste into where you want this message it to appear./*Count Up - Script hope it helps. */function setcountup(theyear,themonth,theday){yr=theyear;mo= themonth;da=theday}//////////CONFIGURE THE COUNTUP SCRIPT HERE////////////////////STEP 1: Configure the date to count up from, in the format year, month, day://This date should be less than todaysetcountup(1994,04,4)//STEP 2: Configure text to be attached to count upvar displaymessage="have passed since I was born!"//STEP 3: Configure the below 5 variables to set the width, height, background color, and text style of the countup areavar countupwidth='350px'var countupheight='35px'var countupbgcolor='lightblue'var opentags=''var closetags=''//////////DO NOT EDIT PASS THIS LINE//////////////////var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","A ug","Sep","Oct","Nov","Dec")var crosscount=''function start_countup(){if (document.layers)document.countupnsmain.visibility ="show"else if (document.all||document.getElementById)crosscount= document.getElementById&&!document.all?document.ge tElementById("countupie") : countupiecountup()}if (document.all||document.getElementById)document.wr ite('')window.onload=start_countupfunction countup(){var today=new Date()var todayy=today.getYear()if (todayy < 1000)todayy+=1900var todaym=today.getMonth()var todayd=today.getDate()var todayh=today.getHours()var todaymin=today.getMinutes()var todaysec=today.getSeconds()var todaystring=montharray[todaym]+""+todayd+", "+todayy+""+todayh+":"+todaymin+":"+todaysecpastst ring=montharray[mo-1]+""+da+", "+yrdd=Date.parse(todaystring)-Date.parse(paststring)dday=Math.floor(dd/(60*60*1000*24)*1)dhour=Math.floor((dd%(60*60*1000 *24))/(60*60*1000)*1)dmin=Math.floor(((dd%(60*60*1000*24 ))%(60*60*1000))/(60*1000)*1)dsec=Math.floor((((dd%(60*60*1000*24)) %(60*60*1000))%(60*1000))/1000*1)if (document.layers){document.countupnsmain.document. countupnssub.document.write(opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds "+displaymessage+closetags)document.countupnsmain. document.countupnssub.document.close()}else if (document.all||document.getElementById)crosscount. innerHTML=opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds "+displaymessage+closetagssetTimeout("countup()",1 000)}Edit the parts I told you to edit only. And sorry am not good at math. I dont know what day you where born. Helpful if you tell people.
|