<script
language="javascript"
type="text/javascript">
message
=
"Place your message here! ";
colours
=
new
Array('#fff000','#00ff00')siZe
=
20;
message
=
message.split('
');
timer
=
null;
clrPos
=
0;
msgPos
=
0;
jog
=
1;
currentStep
=
10;
step
=
8;
ns
=
(!document.all);
viz
=
'hidden';
Stop
=
false;
document.write("<div
style='position:absolute'>");
document.write("<div
align='center' style='position:relative'>");
document.write("<div
id='T'
style='position:absolute;width:0;height:0;font-family:Arial;font-size:0;'>kurt</div>");
document.write("</div></div><br>");
TT
=
document.getElementById('T')
function
Message()
{
var
pageHeight =
(ns)?window.innerHeight
:window.document.body.offsetHeight;
var
pageWidth =
(ns)?window.innerWidth:window.document.body.offsetWidth;
if
(ns)
{
ypos
=
pageHeight /
8;
xpos
=
pageWidth /
2;
TT.style.width
=
currentStep;
TT.style.top
=
ypos +
-currentStep
/
16
+
window.scrollY;
TT.style.left
=
(xpos
-
20)+
-currentStep
/
2;
TT.style.fontSize
=
currentStep /
8;
TT.innerHTML
=
message[msgPos];
TT.style.color
=
colours[clrPos];
}
else
{
ypos
=
pageHeight /
8;
xpos
=
pageWidth /
2;
TT.style.width
=
currentStep;
TT.style.pixelTop
=
ypos +
-currentStep
/
16
+
document.body.scrollTop;
TT.style.pixelLeft
=
(xpos
-
20)+
-currentStep
/
2;
TT.style.fontSize
=
currentStep /
8;
TT.innerHTML
=
message[msgPos];
TT.style.color
=
colours[clrPos];
}
if
(ns)step
+=
5;
else
step +=
15;
currentStep
+=
step
if
(ns)
{
if
(currentStep
>
pageWidth)
{
currentStep
=
10;
step
=
8;
msgPos
+=
jog;
clrPos
+=
jog;
}
if
(clrPos
>=
colours.length)
clrPos =
0;
}
else
{
if
(currentStep
>
pageWidth *
siZe)
{
currentStep
=
10;
step
=
8;
msgPos
+=
jog;
clrPos
+=
jog;
}
if
(clrPos
>=
colours.length)
clrPos =
0;
}
if
(msgPos
>=
message.length)
{
clearTimeout(timer);
Stop =
true;
TT.style.visibility
=
viz;
}
if
(!Stop)
timer =
setTimeout("Message()",40)
}
window.onload
=
Message;
</script>