NAVIGATIE

Freetime overzicht
Zoeken


  RUBRIEKEN

FAQ / Help
Wat mag niet?
WZL Wedstrijden
WZL Chat
WZL Toolbar
WZL Statistieken
WZL leden
WZL shop
E-cards

RSS

Fun-feed
Babe-feed
Stud-feed

Een groot aantal pokerrooms geven de mogelijkheid om poker te spelen op internet en geld te storten via het veilige iDeal betaalsysteem.
Overzicht » Computer » Programmeren » Countdowntje
Onderaan pagina
finalplayer 3.665
wzl-lid
Sinds 28/10/2003
T: 71 R: 610
15/6/2005 - 16:25u | Quote
Kan iemand voor mij (met javascript) een countdown maken in uren, minuten en seconden (geen dagen) die aftelt tot donderdag 23 juni, 12.05h.

Dus bv. op die manier:

Nog 493 uren, 32 minuten en 15 seconden.


Degelijke layout moet zelfs niet, gewoon wit paginaatje met de standaard (times new roman) font is voldoende, alst maar werkt bennek content
Duffy 2.9
wzl-lid
Sinds 23/6/2004
T:114 - R:1068
15/6/2005 - 17:21u | Quote
Countdowner

Tis zoiets wa ge bedoelde?

Laatst aangepast door Duffy op 15/06/2005 17:22:25u (1x aangepast)
finalplayer 3.665
wzl-lid
Sinds 28/10/2003
T:71 - R:610
15/6/2005 - 17:59u | Quote
Almost perfect Alleen moeten die dagen in uren uitgedrukt worden.
code05 2.077
wzl-lid
Sinds 25/9/2004
T:7 - R:93
15/6/2005 - 18:10u | Quote
kan je uitlegge hoe je zoiets maakt?
Losealot
Beachboy
Sinds 24/9/2004
T:55 - R:1358
15/6/2005 - 18:22u | Quote
<script language="JavaScript1.2">

function setcountdown(theyear,themonth,theday,thehour,themin,thesec){
yr=theyear;mo=themonth;da=theday;hr=thehour;min=themin;sec=thesec
}

//////////Bewerk het aftelscript hier//////////////////

//STEP 1: verander hier het aftel - script, in het formaat year, month, day, hour(0=midnight,23=11pm), minutes, seconds:
setcountdown(2005,06,23,12,05,00)

//STEP 2: verander hieronder de tekst die na het aftellen moet komen, en de boodschap op de dag van het tijdstip, respectively
var occasion="23 juni 2005 12:05"
var message_on_occasion="Mission Acomplished"

//STEP 3: verander de 5 variabelen hieronder , te weten the width, height, background color, and text style of the countdown area
var countdownwidth='640px'
var countdownheight='35px'
var countdownbgcolor='White'
var opentags='<font face="Verdana"><small>'
var closetags='</small></font>'

//////////verander hieronder niets//////////////////

var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"
var crosscount=''

function start_countdown(){
if (document.layers)
document.countdownnsmain.visibility="show"
else if (document.all||document.getElementById)
crosscount=document.getElementById&&!document.all?document.getElementById("countdownie" : countdownie
countdown()
}

if (document.all||document.getElementById)
document.write('<span id="countdownie" style="width:'+countdownwidth+'; background-color:'+countdownbgcolor+'"></span>')

window.onload=start_countdown


function countdown(){
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[mo-1]+" "+da+", "+yr+" "+hr+":"+min+":"+sec
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 on day of occasion
if(dday<=0&&dhour<=0&&dmin<=0&&dsec<=1&&todayd==da){
if (document.layers){
document.countdownnsmain.document.countdownnssub.document.write(opentags+message_on_occasion+closetags)
document.countdownnsmain.document.countdownnssub.document.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+message_on_occasion+closetags
return
}
//if passed day of occasion
else if (dday<=-1){
if (document.layers){
document.countdownnsmain.document.countdownnssub.document.write(opentags+"Occasion already passed! "+closetags)
document.countdownnsmain.document.countdownnssub.document.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+"Occasion already passed! "+closetags
return
}
//else, if not yet
else{
if (document.layers){
document.countdownnsmain.document.countdownnssub.document.write(opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds left until "+occasion+closetags)
document.countdownnsmain.document.countdownnssub.document.close()
}
else if (document.all||document.getElementById)
crosscount.innerHTML=opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds left until "+occasion+closetags
}
setTimeout("countdown()",1000)
}
</script><ilayer name="countdownnsmain" id="countdownnsmain" top="7" width="&amp;{countdownwidth};" height="&amp;{countdownheight};" visibility="hide" bgColor="#000000">
<layer id="countdownnssub" width="&amp;{countdownwidth};" height="&amp;{countdownheight};" left="0" top="0"></layer></ilayer>
Keneo 3.453
wzl-lid
Sinds 19/10/2004
T:7 - R:409
26/6/2005 - 17:43u | Quote
code05 schreef:
kan je uitlegge hoe je zoiets maakt?


copieren van iemand anders, en dan uw eigen waarden invullen
of javascript leren, da kan ook...
Element 2.564
wzl-lid
Sinds 25/9/2004
T:37 - R:677
8/8/2005 - 14:17u | Quote
als ge samurize gebruikt is het nog makkelijker en staat op desktop..
 
Bovenaan pagina