从字符串中提取超链接地址
现有如下文本(只列出一小部分):
function checksq()
{
if (document.sq.user.value.length <1)
{alert( "请输入用户信息! ");
return false;}
return true;}
function check()
{
if (document.se.text.value.length <1)
{alert( "请输入关键字! ");
return false;}
return true;
}
//-->
<!--//
function check0()
{
if ((document.jstj.sm.value.length <1) && (document.jstj.zz.value.length <1) && (document.jstj.cbs.value.length <1) && (document.jstj.cbrq.value.length <1) )
{
alert( "请输入检索信息! ");
return false;
}
return true;
<img src= "images/folder.gif "> <span class= "p6 "> <font color= "#669900 "> yinqsj </font> </span> <br>
<img src= "images/yd.gif " width= "11 " height= "14 "> <a href=rcount.asp?ssnum=1002> yued </a>
<img src= "images/down.gif " width= "11 " height= "14 "> <a href=dcount.asp?ssnum=1002> xiaz </a>
<img src= "images/pl.gif " width= "11 " height= "14 "> <a href=guestbook/index.asp?ssnum=1002&bookname=yinqsj发表评论 </a>
<img src= "images/sq.gif " width= "11 " height= "14 "> <a href=sq/add.asp?ssnum=1002&bookname=yinqsj > 添加个人书签 </a> </font>
</span> </td>
<img src= "images/down.gif " width= "11 " height= "14 "> <a href=dcount.asp?ssnum=2745> xiaz </a>
<img src= "images/folder.gif "> <span class= "p6 "> <font color= "#669900 "> yinqsj </font> </span> <br>
<img src= "images/down.gif " width= "11 " height= "14 "> <a href=dcount.asp?ssnum=1279> xiaz </a>
.......
现要提取出所有xiaz所在行的 "dcount.asp?ssnum=XXXX ", 如何修改如下处理代码才能达到目的:
<html>
<head>
<title> 从字符串中提取超链接地址(by howwa@sina.com) </> </title>
<META http-equiv=Content-Type content= "text/html; charset=gb2312 ">
<script language=javascript>
// <!--
function getHrefs(str) {
var