Go Back   iTrader Forums » iTrader Chat » General Chit Chat » HTML/XHTML Design

HTML/XHTML Design Discuss anything to do with HTML XHTML design here.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10th March 2008, 05:20 AM
Junior Member
 
Join Date: Mar 2008
Posts: 1
Credits: 0
Default age counter HTML code?

ok on my myspace i want it to say i am 14yrs,1 month, 5 days, 3 hours, and 2 seconds ya know what i mean but i dont want like a picture i just want normal text....but i wantr it to count automatically. is this possible? if so, whats the code?
Reply With Quote
  #2 (permalink)  
Old 10th March 2008, 06:16 AM
Junior Member
 
Join Date: Mar 2008
Posts: 1
Credits: 0
Default

well in the html code spot, you'll have to look for the section where it shows what you are now and change it manually to 14 yrs etc...
Reply With Quote
  #3 (permalink)  
Old 10th March 2008, 07:16 AM
Junior Member
 
Join Date: Mar 2008
Posts: 1
Credits: 0
Default

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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:17 PM. Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
Ad Management by RedTyger


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72