Borgs8472
11-18-2004, 07:17 PM
Effect desired:
Rome, August 12 like:
R
Ro
Rom
Rome
Rome,
Rome,
Rome, A
Rome, Au
Rome, Aug
Rome, Augu
Rome, Augus
Rome, August
Rome, August
Rome, August 1
Rome, August 12
I've got it working with javascript and HTML with a few lines of code as possible:
<BODY onLoad="Type()">
<script language="JavaScript">
var pos=0;
var speed=150;
var msg="Rome, August 12";
function Type(){
pos++;
if (msg.substring(pos-1,pos) == " ")
{
pos++
}
text=msg.substring(0,pos);
if (document.layers)
{
document.layers.layerA.document.open();
document.layers.layerA.document.write(text);
document.layers.layerA.document.close();
}
else if (document.all)
document.all.layerA.innerHTML=text;
if (pos < msg.length)
{
tmer=setTimeout('Type();',speed);
}
}
//-->
</script>
<DIV id="layerA"></DIV>
However it doesn't work. :(
Rome, August 12 is of course {param}
Will I have no luck trying to have a javascript bb code? :/
Rome, August 12 like:
R
Ro
Rom
Rome
Rome,
Rome,
Rome, A
Rome, Au
Rome, Aug
Rome, Augu
Rome, Augus
Rome, August
Rome, August
Rome, August 1
Rome, August 12
I've got it working with javascript and HTML with a few lines of code as possible:
<BODY onLoad="Type()">
<script language="JavaScript">
var pos=0;
var speed=150;
var msg="Rome, August 12";
function Type(){
pos++;
if (msg.substring(pos-1,pos) == " ")
{
pos++
}
text=msg.substring(0,pos);
if (document.layers)
{
document.layers.layerA.document.open();
document.layers.layerA.document.write(text);
document.layers.layerA.document.close();
}
else if (document.all)
document.all.layerA.innerHTML=text;
if (pos < msg.length)
{
tmer=setTimeout('Type();',speed);
}
}
//-->
</script>
<DIV id="layerA"></DIV>
However it doesn't work. :(
Rome, August 12 is of course {param}
Will I have no luck trying to have a javascript bb code? :/