Advertisement
Guest User

Untitled

a guest
Sep 14th, 2012
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.48 KB | None | 0 0
  1.  
  2. <html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  3. <meta name="GENERATOR" content="LichtkrantEditor 8.1">
  4. <meta name="AUTHOR" content="ria">
  5. <meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
  6. <META HTTP-EQUIV="expires" CONTENT="0">
  7. <link rel="stylesheet" href="lk_style.css" type="text/css">
  8. <TITLE>Lichtkrant Botframe0</TITLE>
  9. <SCRIPT LANGUAGE="JavaScript">
  10. var ns4 = (document.layers)? true:false;
  11. var ie4 = (document.all)? true:false;
  12. var d = parent.output.document,t = parent.topframe.document;
  13. var HTMLMaxtijd=0;
  14. var Maxtijd=15;
  15. var PagesBeforeUpdate=21;
  16. var MainPages = 3;
  17. var NrOfPages = 3;
  18. var MaxNrOfPeriodes = -1;
  19. var Uitschakeltijd = "99:99";
  20. var htmlfile="";
  21. var lettertype = "Arial";
  22. var PageArray = new CreateArray(3);
  23. PageArray[0]="Vergeet niet in te schrijven voor de audities ATK<BR>(toneel, zang, dans, decor)voor 19/9!<BR>Inschrijfformulier bij de receptie. <BR>&nbsp;<BR>5hv en 6vw SOK indeling, tijden en locatie hangt op het sportbord. <BR>Sta je niet op de lijst meld je dan bij één van de docent BWO.<BR>&nbsp;<BR>";
  24. PageArray[1]="14-09 / Vrijdag<BR>Afwezig: ROW<BR><center><table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" class=\"z\"><tr><td class=x>klas</td><td class=x>uur</td><td class=x>docent</td><td class=x>vak</td><td class=x>lokaal</td><td class=x>vak</td><td class=x>docent</td><td class=x>lokaal</td></tr></table></center><center><table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" class=\"z\"><tr><td class=y>1C</td><td class=y>4</td><td class=y>LAT</td><td class=y>ne</td><td class=y>101</td><td class=y>ne</td><td class=y>LAT</td><td class=y>117</td></tr><tr><td class=x>1G</td><td class=x>4</td><td class=x>ROW</td><td class=x>en</td><td class=x>015</td><td class=x>en</td><td class=x>VEM</td><td class=x>015</td></tr><tr><td class=y>2M</td><td class=y>6</td><td class=y>SCL</td><td class=y>en</td><td class=y>015</td><td class=y>en</td><td class=y>SCL</td><td class=y>010</td></tr></table></center>&nbsp;<BR>&nbsp;<BR>";
  25. PageArray[2]="17-09 / Maandag<BR>Afwezig: DIM, DOR (7-7), SLR (1-4), VLR (1-1)<BR><center><table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" class=\"z\"><tr><td class=x>klas</td><td class=x>uur</td><td class=x>docent</td><td class=x>vak</td><td class=x>lokaal</td><td class=x>docent</td><td class=x>vak</td></tr></table></center><center><table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" class=\"z\"><tr><td class=y>1F</td><td class=y>4</td><td class=y>BUF</td><td class=y>M</td><td class=y>238</td><td class=y>BUF</td><td class=y>M</td></tr><tr><td class=x>1G</td><td class=x>3</td><td class=x>BOY</td><td class=x>ne</td><td class=x>157</td><td class=x>BOY</td><td class=x>ne</td></tr><tr><td class=y>2M</td><td class=y>6</td><td class=y>DIM</td><td class=y>M</td><td class=y>106</td><td class=y>MAA</td><td class=y>ak</td></tr><tr><td class=x>5V1, 5V3,</td><td class=x>5</td><td class=x>DIM</td><td class=x>ak6</td><td class=x>106</td><td class=x>BRE</td><td class=x>ak6</td></tr><tr><td class=y>5V1</td><td class=y>2</td><td class=y>SLR</td><td class=y>na2</td><td class=y>205</td><td class=y>HUP</td><td class=y>na2</td></tr></table></center>&nbsp;<BR>";
  26. var SecTeller=0
  27. var wtime = null;
  28. var width,margin;
  29. var tgs = new Array( "div","td","th","pre");
  30. var PageTeller=0;
  31. var PagesShown=0;
  32. var sz=0;
  33. var HTMLmode=false;
  34. var Commandstring="[LK8.1]";
  35. function CreateArray (num ){
  36. this.length = num;
  37. for (var j =0; j <num; j++) {this[j] = "";}}
  38. function shrink(aPage)
  39. {
  40. var Overlap, cEl = null,i,j,cTags;
  41. if (sz==0){
  42. if (aPage < MainPages){
  43. sz = 37;
  44. }else{
  45. sz = 37;
  46. }}
  47. sz++;
  48. do {
  49. sz--;
  50. if ( !( cEl = d.getElementById("body") ) ) cEl = d.getElementsByTagName("body")[ 0 ];
  51. cEl.style.fontSize = sz+"px";
  52. for ( i = 0 ; i < tgs.length ; i++ ) {
  53. cTags = cEl.getElementsByTagName( tgs[ i ] );
  54. for ( j = 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize = sz+"px";
  55. }
  56. Overlap = ((d.body.scrollHeight > d.body.clientHeight) || (d.body.scrollWidth > d.body.clientWidth));
  57. }
  58. while ((sz>10) && Overlap);
  59. }
  60. function StyleProc(aPage){
  61. var pg=0;
  62. var S0X1="font-family:Arial; font-size:37px;font-weight: bold;color: #00AE00;text-align:left;";
  63. var S0X3="border-width: 1px;border-style:solid;border-top-color:#B2B2B2;border-left-color:#B2B2B2;border-bottom-color:#4E4E4E;border-right-color:#4E4E4E;padding:7px;";
  64. var S1X1="font-family:Arial; font-size:37px;font-weight: bold;color: #00AE00;text-align:left;";
  65. var S1X3="border-width: 1px;border-style:solid;border-top-color:#B2B2B2;border-left-color:#B2B2B2;border-bottom-color:#4E4E4E;border-right-color:#4E4E4E;padding:7px;";
  66. var r="#c1 {position:absolute;left:0;top:0;z-index:-1}";
  67. r+=".small { font-family: System; font-size: 8px; color: #BBCB87; position: absolute; bottom: 10px; left: 10px}";
  68. if (aPage < MainPages){
  69. r+="body {margin : 0px;";
  70. r+="background-color:#E3F3AF;"+S0X1+"}";
  71. r+="PRE {margin-left: "+margin+"px;"+S0X1+"}TD {"+S0X1+S0X3+"}";
  72. r+="TABLE {"+S0X3+"}";
  73. r+="TH {"+S0X1+S0X3+";background-color: #BBCB87}";
  74. }else{
  75. r+="body {margin : 0px;";
  76. r+="background-color:#E3F3AF;"+S1X1+"}";
  77. r+="PRE {margin-left: "+margin+"px;"+S1X1+"}TD {"+S1X1+S1X3+"}";
  78. r+="TABLE {"+S1X3+"}";
  79. r+="TH {"+S1X1+S1X3+";background-color: #BBCB87}";
  80. }
  81. return(r);
  82. }
  83. function CheckEindTijd(){
  84. if (document.xclock.time.value.substring(0,5) == Uitschakeltijd) {
  85. Commandstring = "[LK8.1][POWEROFF]";
  86. defaultStatus = Commandstring + " uitschakelen gestart"
  87. }}
  88. function PrintPeriode(){
  89. var ii = MaxNrOfPeriodes;
  90. while ((ii>=0) && (PerArray[ii]>document.xclock.time.value)) {ii--};
  91. if (ii>=0) {document.xclock.periode.value = PerArray[ii].substring(6,200)}
  92. else {document.xclock.periode.value = ""}
  93. }
  94. function PageInc(anInterval){
  95. PageTeller = PageTeller + anInterval;
  96. PagesShown++;
  97. if (PageTeller >= NrOfPages){ PageTeller = 0;
  98. }else if (PageTeller < 0 ) PageTeller = NrOfPages-1;
  99. }
  100. function Reload(){
  101. defaultStatus = "Loading nieuwe gegevens ";
  102. window.location.reload( true );
  103. }
  104. function ShowTop(){
  105. if (ie4) {t.clear};
  106. t.write("<HTML><style type=text/css>BODY {font-family: System; color: navy; background:#707070;margin:2px}DIV {font-size: 12px; font-weight: bold; position: absolute; top: 5px; left: 100px}</style><body><img src=lk_anim.gif width=24 height=22 border=0 alt=\"LichtkrantEditor is een product van SpoelstraIT Advies zie http://www.spoelstrait.nl\" align=left><DIV>Mededelingen/Roosterwijzigingen #0</DIV></body></html>");
  107. t.close();
  108. }
  109. function WritePage(){
  110. if (ie4){d.clear};
  111. d.write("<HTML><HEAD>");
  112. d.write("<link rel=\"stylesheet\" href=\"lk_style.css\" type=\"text/css\">");
  113. d.write("<style type=text/css>");
  114. d.write(StyleProc(PageTeller));
  115. d.write("</STYLE>");
  116. d.write("</HEAD>");
  117. d.write("<body>");
  118. d.write ("<PRE>");
  119. d.write (PageArray[PageTeller]);
  120. d.write("</pre></body></html>");
  121. d.close();
  122. shrink(PageTeller);
  123. }
  124. function ShowPage(){
  125. document.xclock.seconds.value=" ";
  126. SecTeller=0;
  127. if ((htmlfile !="") && (PageTeller==NrOfPages-1)){
  128. document.xclock.page.value="HTML";
  129. HTMLmode=true;
  130. defaultStatus = Commandstring + "HTML presentatie wordt ingevoegd.";
  131. parent.output.location=htmlfile;
  132. }else{
  133. HTMLmode=false;
  134. width=800;
  135. margin=10;
  136. width = (ns4)? window.innerWidth-16 : document.body.offsetWidth-20;
  137. margin=Math.floor(width/12);
  138. document.xclock.page.value = "" +(PageTeller+1)+" van "+ NrOfPages;
  139. if ((PagesShown>10) && (PagesBeforeUpdate<0)) {Reload()} else {WritePage()};
  140. }}
  141. function Clupdate() {
  142. var t = new Date();
  143. var hours = t.getHours();
  144. var min = t.getMinutes();
  145. var sec = t.getSeconds();
  146. if (min < 10) min = "0" + min;
  147. if (sec < 10) sec = "0" + sec;
  148. if (hours < 10) hours = "0" + hours;
  149. CheckEindTijd();
  150. document.xclock.time.value = hours + ":" + min + ":" + sec;
  151. if (HTMLmode) {min=HTMLMaxtijd} else {min=Maxtijd};
  152. sec = 1+((SecTeller * 10) / min);
  153. while (document.xclock.seconds.value.length < sec) {
  154. document.xclock.seconds.value = document.xclock.seconds.value+"/";}
  155. }
  156. function Clock() {
  157. Clupdate();
  158. if (HTMLmode) {
  159. if (SecTeller>=HTMLMaxtijd){
  160. HTMLmode=false;
  161. PageInc(1);
  162. ShowPage();
  163. }
  164. }else{
  165. if (SecTeller>=Maxtijd) {
  166. PageInc(1);
  167. ShowPage();
  168. PagesBeforeUpdate--
  169. defaultStatus = Commandstring + "Laatste update : Vr 15:48";
  170. }
  171. }
  172. wtime = window.setTimeout("Clock()", 1000);
  173. SecTeller++
  174. }
  175. function XStartUp(){
  176. if (top.location==location){ top.location="lk_latt0.htm";}else{
  177. if (htmlfile !="") NrOfPages++;
  178. ShowTop();
  179. ShowPage();
  180. Clock();
  181. }}
  182. function Next(){
  183. PageInc(1);
  184. ShowPage();
  185. }
  186. function Prev (){
  187. PageInc(-1);
  188. ShowPage();
  189. }
  190. function Sluit (){
  191. parent.window.close();
  192. }
  193. </SCRIPT>
  194. <style type=text/css>
  195. BODY {font-family: System; color: navy; background:#707070;margin:0px}
  196. INPUT {font-family: System; color: navy; background:#909090;}
  197. TD {font-family: Arial; margin:3px}
  198. </STYLE>
  199. </head>
  200. <BODY bgcolor=#C0C0C0 text=navy onLoad="XStartUp();">
  201. <form name="xclock"><table border=0 width="100%"><tr height=24><td>
  202. <input type=text name="time" size="8">
  203. <input type=text name="periode" size="0">
  204. <input type=text name="seconds" size="12">
  205. &nbsp;<input type=text name="page" size="12">
  206. </td><td align=right><img src="lk_prev.gif" width=24 height=22 border=0 alt="Voorgaande pagina" onClick="javascript:Prev();">
  207. <img src="lk_index.gif" width=24 height=22 border=0 alt="Lichtkrant GPUntis">
  208. <img src="lk_next.gif" width=24 height=22 border=0 alt="Volgende Pagina" onClick="javascript:Next();"></td></tr></table></form>
  209. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement