実行結果
設置サンプルのソース
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="ja" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<title>jQuery jqtwitter | 設置サンプル</title>
<link rel="stylesheet" type="text/css" href="/content/lib/global.css" />
<!-- JS -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="/content/lib/jquery/jquery.jqtwitter.js"></script>
<script type="text/javascript">
function twitter() {
$("#tweets").empty();
$("#tweets").html("<div align='center'><img src='/content/img/loader.gif' /><br>Loading...</div>");
$("#tweets").empty();
$('#tweets').jqtwitter("cocoism");
setTimeout(twitter, 60000);
}
$(function(){
twitter();
});
</script>
<!-- CSS -->
<style type="text/css">
table {
border:0;
border-spacing:0;
border-collapse:collapse;
width:100%;
}
#container {
width:400px; height:auto;
background-color:#ccc;
border:1px solid #000;
font-size:11px;
}
#container a {
text-decoration:none;
}
#container .header {
background-color:#f2f2f2;
line-height:50px;
border:1px solid #000;
padding:1px;
}
#container .footer {
background-color:#f2f2f2;
border:1px solid #000;
}
#container .footer a {
font-size:10px;
}
#tweets {
border:1px solid #000;
background-color:#fff;
padding:1px;
}
#tweets .created_at {
color:#ff0000;
font-size:9px;
}
</style>
<link rel="stylesheet" type="text/css" href="/common/css/example.css"></head>
<body id='example3' class='example'><div class="ads" style="margin:32px auto;text-align:center;"></div><h1 class='h'><a href='/'>PHP & JavaScript Room</a> :: 設置サンプル</h1>
<h3 class='h'>実行結果</h3>
<div id="wrap">
<h1><a href='http://www.killingismybusiness.co.cc/desenvolvimento/jquery-jqtwitter'>jQuery jqtwitter</a> | 設置サンプル</h1>
<!-- CODE -->
<div id="container">
<div align='center' class='header'>
<table>
<tr>
<td align='center'><div id="uname"></div></td>
<td><img id="profile" /></td>
</tr>
</table>
</div>
<div id="tweets"></div>
<div align='center' class='footer'>
<table>
<tr>
<td align='center'><div id="ulink"></div></td>
</tr>
</table>
</div>
</div>
<!-- / CODE -->
</div>
</body>
</html>