lwjab

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
function getsouth()
{
       
var southIndex1 = "";
            
if(lastIndex == "10")
            
{
                southIndex1 
= lastIndex;
            }

            
else
            
{
                southIndex1 
= parseInt(lastIndex) + 1;
            }

            
var southIndex = firstIndex + southIndex1;    //向下
            return southIndex;
}

function getwest()
{
var westIndex1 = "";
            
if(firstIndex == "a")
            
{
                westIndex1 
= firstIndex;
            }

            
else
            
{
                westIndex1 
= String.fromCharCode(firstIndex.charCodeAt()-1);
            }

            
var westIndex = westIndex1 + lastIndex;    //向左
            return westIndex;
}
posted on 2005-10-21 23:18  lwj  阅读(3843)  评论(0编辑  收藏  举报