[common]
total_steps = 9

[step1]
insert_type = script

insert_element = body

insert_element_id = 

insert_where = afterBegin

insert_content = ``
<SCRIPT LANGUAGE="JavaScript">
var count=0; var thePhase=0; var aniOn=0;
var theStrength=0;var maxCount=40;var maxStrength=100;var theCount=0;
var colorList=new Array("red", "blue", "green");
var	oDiv=null;
var oQueue=new Array();
function doStart(obj)
{
	oDiv=obj;
	oQueue.push(string1.name);
	oQueue.push(string2.name);
	oQueue.push("欢迎使用QQ邮箱");
	if(obj==null)return;
	if(!oQueue.length)return;
	oDiv.innerHTML=oQueue.shift();
	var ctrlRng=document.body.createControlRange()
	ctrlRng.add(oDiv)
	ctrlRng.select();
	ctrlRng.execCommand("SelectAll")
    theCount=0;
	doFilt();
}

function getStrength(pos)
{
	var	ret=0
	if(pos<maxCount)
	{
		ret=maxStrength*pos*pos/(maxCount*maxCount);
	}
	else if(pos==maxCount)
	{
		strNext=oQueue.shift()
		oDiv.innerHTML=strNext;
		rndNum=Math.floor(Math.random() * 3)
		oDiv.style.filter+="glow(color=" +  colorList[rndNum] + ", strength=5)"
		ret=maxStrength;
	}
	else if(pos<2*maxCount)
	{
		pos=2*maxCount-pos;
		ret=maxStrength*pos*pos/(maxCount*maxCount);
	}
	else
		ret=0;
	ret=Math.ceil(ret)
	return ret;
}

function anitext(){
  thePhase=(thePhase + 10)
  oDiv.filters[0].phase=thePhase
  theStrength=getStrength(++theCount);
  window.status=theStrength
  if(theStrength==0)theCount=0;

  if(oQueue.length>0 || theStrength>0)
  {
    oDiv.filters[0].strength=theStrength;
    oTO=window.setTimeout("anitext()",0200,"JavaScript")
  }
}

function doFilt(){
  oDiv.style.filter="wave(add=0, freq=3, lightstrength=50, phase=0, strength=2, enabled=1); "
  rndNum=Math.floor(Math.random() * 3)
  oDiv.style.filter+="glow(color=" +  colorList[rndNum] + ", strength=5)"
  anitext()
}

function removeFilt(){
  window.clearTimeout(oTO)
  oDiv.style.filter=" "
}

function arrPush(item)
{
	this[this.length]=item;
}

function arrShift()
{
	var item=this[0];
	var nLen=this.length;
	for(var i=0;i<nLen-1;i++)
		this[i]=this[i+1];
	this.length--;
	return item;
}

Array.prototype.push=arrPush;
Array.prototype.shift=arrShift;

</SCRIPT>``

[step2]
insert_type = html

insert_where = currentSelect

insert_content = ``
<DIV ID="MyDiv" align="center"></DIV>``

[step3]
insert_type = attribute

insert_element = body

insert_element_id = 

insert_attribute_key = onLoad

insert_attribute_value = doStart(MyDiv)

[step4]
insert_type = style

insert_element = div

insert_element_id = MyDiv

insert_style_key = width

insert_style_value = 600

[step5]
insert_type = style

insert_element = div

insert_element_id = MyDiv

insert_style_key = font-size

insert_style_value = 25pt

[step6]
insert_type = style

insert_element = div

insert_element_id = MyDiv

insert_style_key = font-family

insert_style_value = Tahoma

[step7]
insert_type = style

insert_element = div

insert_element_id = MyDiv

insert_style_key = font-weight

insert_style_value = bold

[step8]
insert_type = inputdialog

insert_input_dialog_type = text

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

insert_element_id = string1

[step9]
insert_type = inputdialog

insert_input_dialog_type = text

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

insert_element_id = string2



