熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> .NET編程 >> 正文

收藏當前頁面的網址Asp代碼

2013-11-13 10:45:38  來源: .NET編程 

  收藏當前頁面的網址asp教程代碼

  <%
         function getip   獲取ip
            if requestservervariables("http_x_forwarded_for")=empty then
               getip=requestservervariables("remote_addr")
            else
               getip=requestservervariables("http_x_forwarded_for")
            end if
         end function

  responsewrite getip
         %>

  <script>
         var hostname = locationhostname;      //獲取當前域名
         var localurl = locationhref;          //獲取當前的url地址信息 
         </script>
         <a href="#" onclick="thisstylebehavior=url(#default#homepage);windowexternaladdfavorite(localurlwwwasjcn)">加入收藏         

  </a>


From:http://tw.wingwit.com/Article/program/net/201311/14454.html
    推薦文章
    Copyright © 2005-2013 電腦知識網 Computer Knowledge   All rights reserved.