Skip to content

Instantly share code, notes, and snippets.

View Hunter-Dolan's full-sized avatar

Hunter Dolan Hunter-Dolan

View GitHub Profile
@Hunter-Dolan
Hunter-Dolan / jsonipjquery.html
Created January 8, 2011 02:30
Json IP jQuery Script
<!--Include jQuery-->
<script src="http://code.jquery.com/jquery-1.4.4.js"></script>
<script>
//Get the JSON Code
$.getJSON("http://jsonip.hdcomputers.us/json/",{},
function(data) {
//JS Goodness here! Your ip variable is data.ip
alert('Your IP Address is ' + data.ip)
});
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- saved from url=(0051)http://www.gnu.org/licenses/gpl-3.0-standalone.html -->
<HTML><STYLE>
body {
font-family:Arial,Helvetica,sans-serif;
color: #333;
background-color: #FFFFFF;
margin: 0px;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- saved from url=(0051)http://www.gnu.org/licenses/gpl-3.0-standalone.html -->
<HTML><STYLE>
body {
font-family:Arial,Helvetica,sans-serif;
color: #333;
background-color: #FFFFFF;
margin: 0px;
}
/***** crystalmail|Mail mail task styles *****/
#messagetoolbar
{
position: absolute;
background: url('images/header.png') repeat-x;
top: 26px;
left: 0px;
right: 0px;