发表时间:2006-4-6 18:28:00
function getCurrentFactPageIndex()
{
 var url = window.***.href;
 var currentPageIndex = 1;
 if(url.toLowerCase().indexOf('factindex='http://www.blog.com.cn/) != -1)
 {
  var temp = url.substring(url.toLowerCase().indexOf('factindex='));
  if(temp.indexOf('&') != -1)
   temp = temp.substring(0,temp.indexOf('&'))
  if(temp != '')
   temp = temp.toLowerCase().replace('factindex=','')
  if(/^"d+$/img.test(temp))
   currentPageIndex = temp;
  else
   currentPageIndex = 1;
 }
 return currentPageIndex;
}
posted on 2009-04-29 15:37  袁晓平  阅读(249)  评论(0编辑  收藏  举报