<script>
var direction = new Array();
var temporary = new Array();
function move_nieuws( mess, speed, msg_start, msg_end, fname ) {
var doc = eval(''+fname+'.scroll');
var len = doc.size;
var dir = direction[fname];
if (dir > 0) {
if (msg_end >= mess.length) {
mess = mess.substring(msg_start, mess.length) + mess.substring(0, msg_start);
msg_start = 0;
msg_end = len;
}
} else {
if (msg_start <= 0) {
mess = mess.substring(msg_end, mess.length) + mess.substring(0, msg_end);
msg_start = mess.length - msg_end;
msg_end = mess.length;
}
}
doc.value=mess.substring(msg_start, msg_end);
msg_start+= dir;
msg_end+= dir;
window.setTimeout("move_nieuws('"+mess+"', "+speed+", "+msg_start+", "+msg_end+", '"+fname+"')", speed);
}
function init_nieuws(fname, mess, speed, dir) {
var len = eval(''+fname+'.scroll.size');
direction[fname] = dir;
while (mess.length < len) {
mess = '' + mess + mess;
}
window.setTimeout("move_nieuws('"+mess+"', "+speed+", 0, "+len+", '"+fname+"')", speed);
}
function switch_nieuws(fname) {
if (direction[fname] != 0) {
temporary[fname] = direction[fname];
direction[fname] = 0;
} else {
direction[fname] = temporary[fname];
}
}
function start_nieuws(fname) {
direction[fname] = temporary[fname];
}
function stop_nieuws(fname) {
temporary[fname] = direction[fname];
direction[fname] = 0;
}
</script>
<style>
.nieuws_font { font-family: 'Verdana, Arial, Helvetica, sans-serif'; font-size: 12px;
color: #ffffff; background-color: 0884c6; border: 0px;}
</style>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" width="970">
<tr height="19">
<FORM name="nieuws1">
<td class="nieuws_font" align="center" onMouseOver="stop_nieuws('nieuws1')"onMouseOut="start_nieuws('nieuws1')">
<input name="scroll" class="nieuws_font" size="160">
<script language="javascript">
init_nieuws("nieuws1", " +++bericht1--- bericht2--- bericht3--- bericht4--- bericht5--- bericht6 --- bericht7--- bericht8", 100, 1);
</script>
</td>
</FORM>