根据关键词显示微博即时信息

效果图:

 

代码:

View Code
<html>

<head>

<title></title>

</head>

<body>
<!-- content begin -->
<div class="w_cont_box">
<div id="cont_m_46_box" class="contBox"><div id="cont_m_46"><div id="tblog_w_cont_m_46"></div>
<script type="text/javascript">
(
function(){
var key = encodeURI('钦州');
document.getElementById(
'tblog_w_cont_m_46').innerHTML = '<iframe src="http://v.t.sina.com.cn/widget/widget_topic_width.php?tags=' + key + '&rightwidth=250&height=439&width=874&widgetcolor=f2f2f2&leftcolor=333&leftbgcolor=fff&leftlinkcolor=013979&rightcolor=333&rightbgcolor=fafafa&rightlinkcolor=013979" width="874" height="439" scrolling="no" frameborder="0"></iframe>';

})();
</script></div></div>
</div>
<!-- content end -->

</body>

</html>

 

posted @ 2012-01-20 10:04  ishibin  阅读(177)  评论(0编辑  收藏  举报