I'm looking for a script which scrolls to a day-month-year date.
Which can show the years or days.in numbers
http://www.jqueryscript.net/demo/Lightw ... er-Plugin/
now i have this javascript and not scrolling
Code: Select all
<script>
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
function countup(yr,m,d){
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy
var paststring=montharray[m-1]+" "+d+", "+yr
var difference=(Math.round((Date.parse(todaystring)-Date.parse(paststring))/(24*60*60*1000))*1)
difference+=" days"
document.write(" "+difference+" on the road")
}
//enter the count up date using the format year/month/day
countup(1998,06,30)
</script>