If you have any problems with the registration process or logging in, please contact us.

Requests, Feedback, and Support Discuss, A little fun item for ya perhaps. at Site Related forum; <form name="count"> <input type="text" size="69" name="count2&...



Go Back   Alcohol Report > Site Related > Requests, Feedback, and Support

Post New Thread  Reply
 
Thread Tools
Old July 13th, 2007, 02:11 PM   #1
426HEMI
Lungbutter King
 
426HEMI's Avatar
 
Join Date: Oct 2006
Location: Oxley, Arkansas
Posts: 10,534
Default A little fun item for ya perhaps.

<form name="count">
<input type="text" size="69" name="count2">
</form>


<script>

/*
Count down until any date script-
By JavaScript Kit (JavaScript Kit- Comprehensive JavaScript, DHTML, CSS tutorials and over 400+ free JavaScripts!)
Over 200+ free scripts here!
*/


//change the text below to reflect your own,
var before="Berman is banned."
var current="Berman is Banned!"
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","A ug","Sep","Oct","Nov","Dec")

function countdown(yr,m,d){
theyear=yr;themonth=m;theday=d
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
futurestring=montharray[m-1]+" "+d+", "+yr
dd=Date.parse(futurestring)-Date.parse(todaystring)
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(dday==0&&dhour==0&&dmin==0&&dsec==1){
document.forms.count.count2.value=current
return
}
else
document.forms.count.count2.value="Only "+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds left until "+before
setTimeout("countdown(theyear,themonth,theday)",10 00)
}
//enter the count down date using the format year/month/day
countdown(2007,07,22)
</script>
<p align="center"><font face="arial" size="-2">This free script provided by</font><br>
<font face="arial, helvetica" size="-2"><a href="http://javascriptkit.com">JavaScript
Kit</a></font></p>
426HEMI is offline   Reply With Quote
Advertisements
Old July 13th, 2007, 02:19 PM   #2
Nick
We're all born atheists.
 
Nick's Avatar
 
Join Date: Jul 2006
Location: Baton Rouge, LA
Posts: 23,479
Default

Yeah, there are all sorts of neat little java scripts out there.
Nick is offline   Reply With Quote
Old July 13th, 2007, 02:24 PM   #3
426HEMI
Lungbutter King
 
426HEMI's Avatar
 
Join Date: Oct 2006
Location: Oxley, Arkansas
Posts: 10,534
Default

Quote:
Originally Posted by Get Shorty View Post
Yeah, there are all sorts of neat little java scripts out there.
Well I just found one to accomadate Berman's request for a countdown.
426HEMI is offline   Reply With Quote
Old July 13th, 2007, 02:41 PM   #4
Nick
We're all born atheists.
 
Nick's Avatar
 
Join Date: Jul 2006
Location: Baton Rouge, LA
Posts: 23,479
Default

I might take a look at adding it later on if I get time.
Nick is offline   Reply With Quote
Post New Thread  Reply

  Alcohol Report > Site Related > Requests, Feedback, and Support


Thread Tools



All times are GMT -5. The time now is 07:33 PM.

Powered by: vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
©2006 - 2010, Alcohol Report

Owned by: Baton Rouge PC