[common]
total_steps = 4

[step1]
insert_type = script

insert_where = currentSelect

insert_content = ``
<script language="JavaScript1.2">
var delay=2000
//Configure scroller width
var scrollwidth=600
//Configure scroller height
var scrollheight=30
var message=new Array()
//Configure messages. Extend array as needed:
var openingtag='<font face='+font1.face+' size='+font1.size+' color='+font1.color+'>'
message[0]='<b>'+string1.name+'</b>'
message[1]='<b>'+string2.name+'</b>'
message[2]='<b>欢迎使用QQ邮箱</b>'
var closingtag='</font>'

//This variable specifies the initial negative offset of each msg
//You may wish to increase it if your scroller is to the right of page horizontally
var hoffset=-10

</script>
<ilayer width=&{scrollwidth}; height=&{scrollheight}; name="sslide">
<layer name="sslide2" width=&{scrollwidth}; height=&{scrollheight};></layer>
</ilayer>

<script language="JavaScript1.2">

var inc=1
var ns4=document.layers
var ie5ns6=document.getElementById||document.all

if (ie5ns6)
document.write(openingtag+'<div id="flyin" style="position:relative;width:'+scrollwidth+';height:'+scrollheight+';">'+message[0]+'</div>'+closingtag)


function updatemsg(){
crossobj.style.left=-2000
crossobj.style.fontStyle="italic"
crossobj.innerHTML=message[inc]
crossobj.style.left=crossobj.offsetWidth*(-1)+hoffset
start=setInterval("animatein()",50)
inc=(inc<message.length-1)? inc+1 : 0
}

function animatein(){
if (parseInt(crossobj.style.left)<0)
crossobj.style.left=parseInt(crossobj.style.left)+20
else{
crossobj.style.left=0
crossobj.style.fontStyle="normal"
clearInterval(start)
}
}

function updatemsgns4(){
document.sslide.document.sslide2.document.write(openingtag+message[inc]+closingtag)
document.sslide.document.sslide2.document.close()
inc=(inc<message.length-1)? inc+1 : 0
}

function initialize(){
if (ie5ns6){
crossobj=document.getElementById? document.getElementById("flyin") : document.all.flyin
setInterval("updatemsg()",delay+1000)
}
else if (ns4){
document.sslide.document.sslide2.document.write(openingtag+message[0]+closingtag)
document.sslide.document.sslide2.document.close()
setInterval("updatemsgns4()",delay)
}
}

window.onload=initialize

</script>``

[step2]
insert_type = inputdialog

insert_input_dialog_type = font

insert_input_dialog_text = 请选择字体的名称、颜色及大小

insert_element_id = font1

[step3]
insert_type = inputdialog

insert_input_dialog_type = text

insert_input_dialog_text = 请输入第一行文字：

insert_element_id = string1

[step4]
insert_type = inputdialog

insert_input_dialog_type = text

insert_input_dialog_text = 请输入第二行文字：

insert_element_id = string2


