首页 > 网站 > 建站经验 > 正文

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

2019-11-02 15:46:43
字体:
来源:转载
供稿:网友

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

         <%
         function getip   '获取ip
            if request.servervariables("http_x_forwarded_for")=empty then
               getip=request.servervariables("remote_addr")
            else
&n

自然探索发现[www.9-39.com/html/explore/]
bsp;              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>

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表