<!-- This script came from the public archives of JavaScript Planet
at http://www.js-planet.com -->
<!-- For more scripts, tutorials, links, discussion forums, help,
or anything else JavaScript, -->
<!-- Please visit JavaScript Planet at http://www.js-planet.com.
Please keep this header intact. -->
<body bgcolor=white text=black onload=move(0)>
<script language="JavaScript">
var u=0
var v=0
var f = Math.PI/180
var txt="----------------------------------------------------------------------------------------------------"
u=0
var text1 = "=> Welcome here <=---"
var text2 = "=> Peace & Love <=---"
var text = text1
var cpt=19
var t=0
var z=0
function maketab(pas) {
for (var i=0; i<180;
i++) {
sinus = Math.round(Math.sin(i*f)*100);
this[i] = sinus;
}
}
var tb = new maketab()
function change() {
cpt++
if (cpt==20) {
if (t==0) {
text = text1
t=1;
}
else {
text = text2
t=0;
}
cpt=0;
}
}
function move(z) {
if (u>180) {u=0}
if (v>180) {v=0}
change()
if (z==0) {
u+=2
document.forms[0].elements[0].value = txt.substring(0,tb[u]) + text
}
if (z==1) {
v+=2
window.status = txt.substring(0,tb[v]) + text
}
if (z==2) {
u+=2
v+=2
document.forms[0].elements[0].value = txt.substring(0,tb[u]) + text
window.status = txt.substring(0,tb[v]) + text
}
setTimeout ("move(z)",50);
}
</script>
<form name="msg">
<p><input type="text" size="79" name="mesg"> </p>
</small></font></small></p>
<p><input type="text" size="37" name="message" value="Type
new text here">
</small></font></small>
<input type="text" size="37" name="message2" value="and here">
</small></font></small>
<input type="button" name="newmsg" value="Generate new msg"
onclick="text1=form.message.value; text2=form.message2.value;">
</small></font></small></p>
<p><input type="button" size="79" name="winstatus" value="window.status"
onclick="z=1">
</small></font></small>
<input type="button" size="79" name="txtarea" value="text
area" onclick="z=0">
</small></font></small>
</small></font></small>
<input type="button" size="79" name="both" value="window.status
and text area" onclick="z=2">
</small></font></small></p>
</form> |