inherit
57132
0
Jun 22, 2023 7:08:59 GMT -8
tom
521
September 2005
tom
|
Post by tom on Jan 21, 2006 10:47:49 GMT -8
|
|
inherit
57132
0
Jun 22, 2023 7:08:59 GMT -8
tom
521
September 2005
tom
|
Post by tom on Jan 28, 2006 20:11:47 GMT -8
I retried the code but not appearing still.
|
|
inherit
Proboards Legend
12897
0
Oct 16, 2016 6:49:45 GMT -8
Snakeair
I don't know what to write here.
40,721
August 2003
snakeair
|
Post by Snakeair on Jan 29, 2006 10:31:21 GMT -8
I retried the code but not appearing still. Could you take ayaour forum off maintaince mode and link is to the code you used.
|
|
inherit
57132
0
Jun 22, 2023 7:08:59 GMT -8
tom
521
September 2005
tom
|
Post by tom on Jan 29, 2006 13:33:24 GMT -8
I got it off proboards. Here is code.
<script> <!-- // AGE OF BOARD
//By Hechizero
var DateOfCreation=[08,03,2005];// Month, Day, Year
if (location.href.match(/(.+\d+.{4}\W?$|.+\d+.{14}[\?]*$|.+\d+.{22}\w{3}(out|in2|kallboardsread)$)/i)) { var tds=document.getElementsByTagName('td'); for (var h=0;h<tds.length;h++) { if (tds[h].width=='40%' && tds[h].vAlign=='top' && tds[h].parentNode.parentNode.parentNode.width=='98%') { var Now=new Date(); var Original=new Date(DateOfCreation[2],DateOfCreation[0]-1,DateOfCreation[1]); var TimeElapsed=Now.getTime()-Original.getTime(); var ByDays=1000*60*60*24; var ByYears=ByDays*365.25; var ByMonths=ByDays*(365.25/12); var Years=Math.floor(TimeElapsed/ByYears); TimeElapsed-=Years*ByYears; Years=(Years==1 ? Years+'</b> year' : Years+'</b> years'); var Months=Math.floor(TimeElapsed/ByMonths); TimeElapsed-=Months*ByMonths; Months=(Months==1 ? Months+'</b> month' : Months+'</b> months'); var Days=Math.floor(TimeElapsed/ByDays); Days=(Days==1 ? Days+'</b> day' : Days+'</b> days'); tds[h].firstChild.innerHTML+='<br />Forum Age: <b>'+Years+', <b>'+Months+' and <b>'+Days+'.'; } } } --> </script>
|
|
inherit
62963
0
Jul 3, 2007 5:43:59 GMT -8
DonJuan
EmuKing
2,302
November 2005
donjuan
|
Post by DonJuan on Jan 29, 2006 14:18:44 GMT -8
The age of board code doesn't work with the Ultimate info center. Try this, it will display a box beneath the info center with the age of the board inside it... MAIN FOOTER <center><script language="JavaScript1.2">
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 today setcountup(2006,29,1)
//STEP 2: Configure text to be attached to count up var displaymessage="have passed since this forum was created!"
//STEP 3: Configure the below 5 variables to set the width, height, background color, and text style of the countup area var countupwidth='27%' var countupheight='20px' //applicable only in NS4 var countupbgcolor='black' var opentags='<font face="Verdana"><small>' var closetags='</small></font>'
//////////DO NOT EDIT PASS THIS LINE//////////////////
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","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.getElementById("countupie") : countupie countup() }
if (document.all||document.getElementById) document.write('<span id="countupie" style="width:'+countupwidth+'; background-color:'+countupbgcolor+'"></span>')
window.onload=start_countup
function countup(){ var today=new Date() var todayy=today.getYear() if (todayy < 1000) todayy+=1900 var 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+":"+todaysec paststring=montharray[mo-1]+" "+da+", "+yr dd=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+closetags
setTimeout("countup()",1000) } </script>
<ilayer id="countupnsmain" width=&{countupwidth}; height=&{countupheight}; bgColor=&{countupbgcolor}; visibility=hide><layer id="countupnssub" width=&{countupwidth}; height=&{countupheight}; left=0 top=0></layer></ilayer></center> I got this from a site that has 'free to distribute' codes... www.dynamicdrive.com
|
|
inherit
57132
0
Jun 22, 2023 7:08:59 GMT -8
tom
521
September 2005
tom
|
Post by tom on Jan 29, 2006 15:10:30 GMT -8
Thanks. That worked.
|
|
inherit
62963
0
Jul 3, 2007 5:43:59 GMT -8
DonJuan
EmuKing
2,302
November 2005
donjuan
|
Post by DonJuan on Jan 29, 2006 15:44:13 GMT -8
you're welcome.
|
|