Haumis wbb hilfe (http://haumis-wbb-hilfe.de/wbb2/index.php)
- WBB2 (http://haumis-wbb-hilfe.de/wbb2/board.php?boardid=3)
-- Fragen zum WBB2 (http://haumis-wbb-hilfe.de/wbb2/board.php?boardid=4)
--- Geburtstagscounter (http://haumis-wbb-hilfe.de/wbb2/thread.php?threadid=1770)


Geschrieben von Lilly am 19.11.2011 um 10:49:

  Geburtstagscounter

Ich möchte oben im Board einen kleinen..Counter bis zum 2. Forengeburtstag einbauen..klein..nicht auffällig und ohne Bild

Etwa so sollte es ausehen: Noch 269 Tage 23 Std. 24 Min. 45 Sek. zum Forum Geburtstag

Kann ich das nur mit einem Script machen? Dann würde ich mich daran setzen....



Geschrieben von haumi am 19.11.2011 um 11:36:

 

Hi Lilly,
da gibt es etwas fertiges.
Ich komme aber erst heute Nachmittag dazu nachzusehen wo.
Wenn bis dahin jemand geholfen hat ist es gut,
ansonstensuche ich bei mir mal alles durch.

LG
haumi



Geschrieben von nobody am 19.11.2011 um 11:52:

 

code:
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:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
<script language="JavaScript1.2">

function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
if (which2.style.MozOpacity)
which2.style.MozOpacity=0.3
else if (which2.filters)
which2.filters.alpha.opacity=30
}

function highlightit(cur2){
if (cur2.style.MozOpacity<1)
cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1
else if (cur2.filters&&cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}

</script>

 <br /> <table cellpadding="4" cellspacing="1" border="0" style="width:92%" class="tableinborder">
  <tr>
   <td class="tabletitle" align="left" colspan="5" ><span class="normalfont"><b></b></a></span></td>
   </tr>
  <tr>
   <td class="tablea" align="center">


 
<center>
<script language="JavaScript1.2">
function setcountdown(theyear,themonth,theday) {
	yr=theyear;mo=themonth;da=theday
}

// ------ SCRIPT Einstellungen ------ //

// Hinweis: Stell hier ein auf was der Couter zulaufen soll...in dem format Jahr, Monat, Tag:

setcountdown(2012,01,01)

// Hinweis: Hier kannst Du ändern was nach ablauf des Couters stehen soll

var occasion="DEIN EREIGNIS"
var message_on_occasion="Und los gehts"

// Hinweis: Stell die Hintergrundfarbe und die Textfarbe so ein wie sie zu deinem Board passt

var countdownwidth='710px'
var countdownheight='18px'
var countdownbgcolor='#2f363c'
var opentags='<font face="Verdana" size="4" color="#737b84">'
var closetags='</font>'

// --------------- Ab hier bitte nicht bearbeiten. --------------- //

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
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+ " Tage, "+dhour+" Stunden, "+dmin+" Minuten und "+dsec+" Sekunden bis "+occasion+closetags
}
setTimeout("countdown()",1000)
}
</script>

<ilayer id="countdownnsmain" width=&{countdownwidth}; height=&{countdownheight}; bgColor=&{countdownbgcolor}; visibility=hide><layer id="countdownnssub" width=&{countdownwidth}; height=&{countdownheight}; left=0 top=0></layer></ilayer>


</center>


 </tr>
</table><br />



<html><body>

Hier Der Code

</body></html>


Ort kannst du dir aussuchen wo es erscheinen soll auf deiner Seite.


nobdy



Geschrieben von Lilly am 19.11.2011 um 13:31:

 

Ui...man ihr seid ja Klasse...hatte gerade noch am Script gesessen ,schaue rein..und sehe das nobody schon einen hatkl3

Nun ja..ich glaube ein bissel hätte ich noch gesessen..war gerade mal so mit einem viertel fertgf*rot werd* und ob das dann auchb funktioniert hätte..wage ich zu bezweifeln*lach*.. st11

Ich danke Euch..den werde ich dann später einbauen.... st14

Danke für Eure Mühen...da9


Forensoftware: Burning Board 2.3.6, entwickelt von WoltLab GmbH