大家来帮忙看看小弟我遇到的这个有关问题

大家来帮忙看看我遇到的这个问题
在文本框中有这样一堆数据
1.阿斯顿发生的飞
2.阿斯顿发生的飞
3.爱上发生的发
4.爱上发生的发撒旦发
5.asfasfasfasfasfasf

如果我把第三条数据(3.爱上发生的发)给删除了。
下面的   4.爱上发生的发撒旦发   能否变成   3.爱上发生的发撒旦发   依次类推。怎么样才能实现




------解决方案--------------------
html 里面有个 <ol> 你trytry
其实这个要用到网页编辑器的说O.o
------解决方案--------------------
<SCRIPT>
function fnAdd()
{
var oNewItem = document.createElement( "LI ");
oList.children(0).insertAdjacentElement( "BeforeBegin ",oNewItem);
oNewItem.innerText = "List Item 0 ";
}
function fnDelete(){
var xx = document.getElementById( "xxx ");
xx.parentElement.removeChild(xx);
}
</SCRIPT>
:
<BODY>
<OL ID = "oList ">
<LI> List Item 1 </LI>
<LI id= "xxx "> List Item 2 </LI>
<LI> List Item 3 </LI>
</OL>
<INPUT TYPE = "button " VALUE = "Add Item " onclick= "fnAdd() ">
<INPUT TYPE = "button " VALUE = "Delete Item " onclick= "fnDelete() ">
</BODY>