`
tianyaguozhe
  • 浏览: 14293 次
  • 性别: Icon_minigender_1
  • 来自: 广州
文章分类
社区版块
存档分类
最新评论
文章列表
<div> <asp:ScriptManager ID="ScriptManager1" runat="server"> <Services> <asp:ServiceReference Path="WebService.asmx" /> </Services> </asp:ScriptManager& ...
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <meta http-equiv=" ...
<script type="text/javascript"> var Sys = {}; var ua = navigator.userAgent.toLowerCase(); var s; (s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] : (s = ua.match(/firefox\/([\d.]+)/)) ? Sys.firefox = s[1] : (s = ua.match(/chrome\/ ...

[置顶] 获取IP

    博客分类:
  • js
<script type="text/javascript"> function dd() { var str = "<%=GetIP()%>"; alert(str); } </script> <input id="Button2" type="button" value="button" onclick="dd();" ...
<html> <head> <title></title> <script src="JavaScript.js"></script> </head> <body> <form id="form" name="form" method="post" action="http://js.alixixi.com" onsubmit=" ...
Default.aspx <script src="jquery.js" type="text/javascript"></script> <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script> <script src="JS.js"></script> JS.js var fromURL; var IP = returnCitySN[ ...
<script> window.onbeforeunload=function (){ alert("===onbeforeunload==="); if(event.clientX>document.body.clientWidth && event.clientY < 0 || event.altKey){ alert("你关闭了浏览器"); }else{ alert("你正在刷新页面"); } } </script>

JS获取IP地址

    博客分类:
  • js
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script> <script type="text/javascript"> document.write(returnCitySN["cip"]+','+returnCitySN["cname"]) </script>
<script src="jquery.js"></script> <script type="text/javascript"> var a = "aaaa"; $(function () { $.ajax({ type: "POST", contentType: "application ...
var second = 0; var minute = 0; var hour = 0; var time; window.setTimeout("staytime();", 1000); function staytime() { second++; if (second == 60) { second = 0; minute += 1; } if (minute == 60) { ...
js获取来源页地址方法: var url = document.referrer; document.write(url);
Global site tag (gtag.js) - Google Analytics