[common]
total_steps = 5

[step1]
insert_type = script

insert_element = body

insert_element_id = 

insert_where = afterBegin

insert_content = ``
<script language="JavaScript1.2">

var size = 20;
var speed_between_messages=1500  //in miliseconds


var tekst = new Array()
{
tekst[0] = string1.name;
tekst[1] = string2.name;
tekst[2] = "欢迎使用QQ邮箱";
}
var klaar = 0;
var s = 0;
var veran =0;
var tel = 0;
function bereken(i,Lengte)
{
return (size*Math.abs( Math.sin(i/(Lengte/3.14))) );
}

function motor(p)
{
var output = "";
for(w = 0;w < tekst[s].length - klaar+1; w++)
{
q = bereken(w/2 + p,16);
if (q > size - 0.5)
{klaar++;}
if (q < 5)
{tel++;
if (tel > 1)
{
tel = 0;
if (veran == 1)
{
veran = 0;
s++;
if ( s == tekst.length)
{s = 0;}
p = 0;
if (window.loop)
{clearInterval(loop)}
loop = motor();
}
}
}
output += "<font style='font-size: "+ q +"pt'>" +tekst[s].substring(w,w+1)+ "</font>";	
}
for(k=w;k<klaar+w;k++)
{ 
output += "<font style='font-size: " + size + "pt'>" +tekst[s].substring(k,k+1)+ "</font>";
}
idee.innerHTML = output;	
}

function startmotor(p){
if (!document.all)
return
var loop = motor(p); 
if (window.time)
{clearInterval(time)}
if (klaar == tekst[s].length)
{
klaar = 0;
veran = 1;
tel = 0;
var time = setTimeout("startmotor(" +(p+1) + ")", speed_between_messages);
}else
{	
var time =setTimeout("startmotor(" +(p+1) + ")", 50);
}

}

</script>``

[step2]
insert_type = html

insert_where = currentSelect

insert_content = ``<FONT ID="idee"></FONT>``

[step3]
insert_type = attribute

insert_element = body

insert_element_id = 

insert_attribute_key = onLoad

insert_attribute_value = startmotor(0)

[step4]
insert_type = inputdialog

insert_input_dialog_type = text

insert_input_dialog_text = 请输入第一行文字的内容：

insert_element_id = string1

[step5]
insert_type = inputdialog

insert_input_dialog_type = text

insert_input_dialog_text = 请输入第二行文字的内容：

insert_element_id = string2



