在某些情况下....  算了
如果你有问题再说 :)<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html>
<head>
<title>Untitled</title>
<script language="JavaScript">
 function changeLink(newLink)
  {
   for(i=0;i<document.links.length;i++)
    document.links(i).href = newLink;
   alert("All links have been changed !");
  }
</script>
</head><body>
<a href="http://www.xxx.com/index.php?a=1&b=2&c=3">link1</a>
<a href="http://www.xxx.com/index.php?a=1&b=2&c=3">link2</a>
<a href="http://www.xxx.com/index.php?a=1&b=2&c=3">link3</a><br>
<span style="cursor:hand" onclick="changeLink('http://www.xxx.com/index.php?a=4&b=5&c=6')">ChangeLink</span>
</body>
</html>