Created
December 1, 2010 06:02
-
-
Save yusukebe/723046 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Sasao Dayo!</title> | |
<script src="http://platform.twitter.com/anywhere.js?id=YOUR_API_KEY&v=1" | |
type="text/javascript"></script> | |
<script type="text/javascript" | |
src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<script type="text/javascript" src="sasao.js"></script> | |
</head> | |
<body> | |
<h1>Sasao Dayo!</h1> | |
<div id="info"> | |
</div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var url = 'http://search.twitter.com/search.json?lang=ja&q=risucomorino&callback=?'; | |
$().ready(function(){ | |
twttr.anywhere(function (T) { | |
T.linkifyUsers(); | |
}); | |
$('h1').hide(); | |
$('h1').fadeIn(5000); | |
$.getJSON(url, function(data) { | |
jQuery.each(data.results,function(){ | |
var imageURL = this.profile_image_url; | |
var text = this.text; | |
$('#info').html($('#info').html() + '<div><img src="' | |
+ imageURL + '" />' + text + '</div>'); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment