不知道你是不是这个意思<SCRIPT LANGUAGE="JavaScript">
<!--
str="<SPAN style=\"CURSOR: hand; COLOR: #ffffff; BACKGROUND-COLOR: #0000ff\" onclick=\"Go(this,'thread.asp?action=ListThread&CategoryID=7&Layer=3&ParentID=6')\">2D Graf</SPAN>"alert(getVar(str,'action'))
alert(getVar(str,'CategoryID'))
alert(getVar(str,'Layer'))
alert(getVar(str,'ParentID'))function getVar(str,strVarName)
{
var reg = new RegExp("(/?|;)"+strVarName+"=([^&]*)(&|')")
var r = str.match(reg)
if (r!=null) return unescape(r[2]);
return (r!=null)?unescape(r[2]):"";
}//-->
</SCRIPT>
<!--
str="<SPAN style=\"CURSOR: hand; COLOR: #ffffff; BACKGROUND-COLOR: #0000ff\" onclick=\"Go(this,'thread.asp?action=ListThread&CategoryID=7&Layer=3&ParentID=6')\">2D Graf</SPAN>"alert(getVar(str,'action'))
alert(getVar(str,'CategoryID'))
alert(getVar(str,'Layer'))
alert(getVar(str,'ParentID'))function getVar(str,strVarName)
{
var reg = new RegExp("(/?|;)"+strVarName+"=([^&]*)(&|')")
var r = str.match(reg)
if (r!=null) return unescape(r[2]);
return (r!=null)?unescape(r[2]):"";
}//-->
</SCRIPT>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货