龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > asp编程 >

收藏当前页面的网址Asp代码

时间:2012-12-31 22:56来源:未知 作者:admin 点击:
分享到:
收藏当前页面的网址asp教程代码 % 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

收藏当前页面的网址asp教程代码

<%
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

response.write getip
%>


<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>


精彩图集

赞助商链接