<% response.Write getip
function getip?? '获取ip
?? if Request.ServerVariables("HTTP_X_FORWARDED_FOR")=empty then
????? getip=Request.ServerVariables("REMOTE_ADDR")
?? else
????? getip=Request.ServerVariables("HTTP_X_FORWARDED_FOR")
?? end if
end function
%>
<script>
var hostname = location.hostname;????? //获取当前域名
var localurl = location.href;????????? //获取当前的url地址信息?
</script>
<A href="#" onClick="this.style.behavior='url(#default#homepage)';window.external.addFavorite(localurl,'www.A-sj.cn')">加入收藏</A>
详细解决方案
Asp归藏当前页面的网址到收藏夹
热度:133 发布时间:2012-12-23 11:28:15.0
相关解决方案