发表时间:2006-4-6 18:31:00
function returnFactPage(newIndex)
{
 var pageCount = document.getElementById("FactNameControl_divPageCount").innerHTML;
 var newPage = "factindex="+newIndex;
 var pattern = /factIndex="d*/img;
 var url = window.***.toString();
 var newurl = "";
 
 if(url.toLowerCase().indexOf("factindex=") == -1)
 {
  if(url.toLowerCase().indexOf("?") == -1)
   newurl = url + "?" + newPage;
  else
   newurl = url + "&" + newPage;
 }
 else
  newurl = url.toLowerCase().replace(pattern,newPage);
 window.navigate(newurl);
 return false;
}
posted on 2009-04-29 15:36  袁晓平  阅读(242)  评论(0编辑  收藏  举报