展会信息港展会大全

收藏当前页面的网址Asp代码
来源:互联网   发布日期:2016-03-01 11:41:21   浏览:1919次  

导读:收藏当前页面的网址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 resp...

收藏当前页面的网址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>

赞助本站

人工智能实验室

相关热词: 开发 编程 android

AiLab云推荐
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港