<a href="Xt_yongfu_Xg.asp?id=<%=(Recordset1.Fields.Item("ID").Value)%>"><img src="images/edt.gif" width="16" height="16" border="0" /></a>请问我要把上面这个ASP代码改用下面这样子实现,但不知道怎么传递id,请高手帮忙写一下。function Xg()
{
window.location.href="Xt_yongfu_Xg.asp"
}<a href="javascript: Xg();"><img src="images/edt.gif" width="16" height="16" border="0" /></a>
{
window.location.href="Xt_yongfu_Xg.asp"
}<a href="javascript: Xg();"><img src="images/edt.gif" width="16" height="16" border="0" /></a>
function Xg()
{
window.location.href="Xt_yongfu_Xg.asp?id=" +"<%=(Recordset1.Fields.Item("ID").Value)%>";
}
{
window.location.href="Xt_yongfu_Xg.asp?id="+idval
} <a href="javascript: Xg(<%=(Recordset1.Fields.Item("ID").Value)%>);"> <img src="images/edt.gif" width="16" height="16" border="0" /> </a>
{
window.location.href="Xt_yongfu_Xg.asp?id=" +"<%=(Recordset1.Fields.Item("ID").Value)%>";
}
{
window.location.href="Xt_yongfu_Xg.asp?id=" +sid ;
}
<a href="javascript: Xg(<%=(Recordset1.Fields.Item("ID").Value)%>);"><img src="images/edt.gif" width="16" height="16" border="0" /></a>这样就实现了,呵呵