Informatie
Informatie (zie voorbeeld)
Voorbeeld
Script
Select All
<SCRIPT LANGUAGE = "JavaScript">
<!--
function AraVob() {
}
var ToolJunkie = new AraVob();
ToolJunkie[1] = "Weer een mooi scriptje voor mededelingen!";
ToolJunkie[2] = "Voeg zoveel tekst toe als je wilt.";
ToolJunkie[3] = " ";
ToolJunkie[4] = "Ben je op zoek naar een bepaalde script?!";
ToolJunkie[5] = "Mail dan naar javascript@tooljunkie.nl";
ToolJunkie[6] = "";
ToolJunkie[7] = "";
ToolJunkie[8] = "";
ToolJunkie[9] = "";
ToolJunkie[10] = "";
ToolJunkie[11] = "T o o l j u n k i e";
ToolJunkie[12] = "Webtools";
ToolJunkie[13] = "Downloads";
ToolJunkie[14] = "Javascripts";
ToolJunkie[15] = "PHP, HTML & more";
ToolJunkie[16] = "Online tools";
ToolJunkie[17] = " ";
ToolJunkie[18] = "";
ToolJunkie[19] = " ";
ToolJunkie[20] = " ";
ToolJunkie[21] = " ";
ToolJunkie[22] = " ";
ToolJunkie[23] = " ";
ToolJunkie[24] = "";
/*
To change or add lines, just replace values of or add to ToolJunkie[n]
above. Use \" in the message text for quotes and \t for tabs.
*/
var TooljunkieRuleZ = 5; // set to first message to display
var msgCnt = 20; // set to number of last ToolJunkie to display.
var typeSpeed = 60; // the typing rate in milliseconds (higher number type more slowly)
var lineDelay = 1000 // the delay time at end of line. (unless the line is a single space)
var pagLen = 9; // number of lines per page (usually the number of rows in the TEXTAREA)
var delay = typeSpeed;
var timerPS = null;
var linPntr = 0;
var tally = 1;
var msg = " ";
var outMsg = "";
var i = 0;
// set up ToolJunkies for display
var typingon = true;
for (x = msgCnt; 1 <= x; x--) {
ToolJunkie[x+pagLen] = ToolJunkie[x] + "\r\n";
}
for (x = 1; x <= (pagLen); x++) {
ToolJunkie[x] = " \r\n";
}
msgCnt += pagLen;
msg = ToolJunkie[1];
// end setup
function SwitchIt() {
typingon = !typingon;
}
function DisplayScroll() {
if (TooljunkieRuleZ < pagLen) {
delay = typeSpeed;
}
else {
delay = lineDelay;
}
ChangeMsg();
outMsg += msg;
self.document.msgform.msgarea.value = outMsg;
if (typingon == true) {
timerPS = setTimeout("DisplayMsg()",delay);
}
else {
clearTimeout(timerPS);
timerPS = setTimeout("DisplayScroll()",delay);
}
}
function DisplayMsg() {
if (msg.length <= i) {
i = 0;
ChangeMsg();
}
outMsg += msg.charAt(i);
i++;
if (msg.charAt(i) != "\n" || msg == " \r\n") {
delay = typeSpeed;
}
else {
delay = lineDelay;
}
self.document.msgform.msgarea.value = outMsg;
if (typingon == false) {
timerPS = setTimeout("DisplayScroll()",delay);
}
else {
clearTimeout(timerPS);
timerPS = setTimeout("DisplayMsg()",delay);
}
}
function ChangeMsg() {
TooljunkieRuleZ++;
if (msgCnt < TooljunkieRuleZ) {
TooljunkieRuleZ = 1;
}
if (pagLen <= tally) {
chgPage();
}
tally++;
msg = ToolJunkie[TooljunkieRuleZ];
}
function chgPage() {
if (TooljunkieRuleZ < pagLen) {
linPntr = msgCnt - pagLen + TooljunkieRuleZ + 1;
}
else {
linPntr = TooljunkieRuleZ - (pagLen - 1);
}
outMsg = ToolJunkie[linPntr];
for (p = 1; p < (pagLen - 1); p++) {
linPntr++;
if (msgCnt < linPntr) {
linPntr = 1;
}
outMsg += ToolJunkie[linPntr];
}
}
function quitDisplay() {
self.document.msgform.msgarea.value = "Velp Zuid ProDUTCHiez!";
}
setTimeout("DisplayMsg()",1000);
// -->
</SCRIPT>
Select All
<FORM NAME = "msgform" ACTION = ""><center>
<font face="Verdana" size="2">
<TEXTAREA NAME = "msgarea" style="background-color: #343E43; background-repeat: repeat; background-attachment: scroll; font-family: Verdana; padding: 2px 8px; font-size: 8 pt; font-weight: bold; color: #DCE1E4; border: 2 ridge #808080; background-position: 0% 50%" rows="10" cols="50">
w w w . t o o l j u n k i e . n l
Please enable JavaScript to view the comments powered by Disqus.