微博墙

<div class="xlc-wb">
                <h4 class="title">聊新浪潮论坛</h4>
                <link rel="stylesheet" href="http://news.sina.com.cn/css/268/2011/1110/17/weibo-all.css" / id="cont_129790_9">
                <style>
                    .weibo-topic{
                        margin-top:30px;
                    }
                    .weibo-publisher .weibo-publisher-submit{
                        width:88px;
                        height: 32px;
                        background: url(../images/pages/pub-btn.png) no-repeat;
                    }
                    .weibo-publisher .weibo-publisher-submit:hover{
                        background: url(../images/pages/pub-btn-h.png) no-repeat;
                    }
                    .weibo-publisher .weibo-publisher-tip em{
                        font-size: 20px;
                        color: #FEC721;
                    }
                    .weibo-list a.weibo-user{
                        color: #FEC721;
                    }
                    .weibo-publisher .weibo-publisher-editor textarea{
                        font-size: 14px;
                    }
                </style>
                <script src="http://news.sina.com.cn/js/87/20110714/205/sinalib.js"></script>
                <script src="http://news.sina.com.cn/js/268/2011/1110/16/weibo-all.js"></script>
                <script src="http://i.sso.sina.com.cn/js/ssologin.js"></script>
                <div class="weibo-topic">
                  <div class="blk_05">
                    <div id="publisher">
                      <div class="weibo-publisher-editor">
                        <textarea></textarea>
                      </div>
                      <div class="weibo-publisher-actions weibo-clearfix"> 
                        <a href="javascript:void(0);" class="weibo-publisher-action weibo-publisher-emoticons" title="表情">表情</a> 
                        <a href="javascript:void(0);" class="weibo-publisher-action weibo-publisher-imgupload" title="图片">图片</a> 
                        <a href="javascript:void(0);" class="weibo-publisher-action weibo-publisher-vidupload" title="视频">视频</a>
                        <div class="weibo-publisher-tip" style="float:left; margin-top:-9px;"><em>140</em>字</div>
                        <a class="weibo-publisher-submit" href="javascript:void(0);" title=""><em>发布</em></a> 
                      </div>
                    </div>
                    <script type="text/javascript">
                      var publisher = new Weibo.Widgets.Publisher({
                          source: '#publisher',
                          width: 400,
                          display: {emoticons: false, imgupload: false, vidupload: false}
                      });
                      publisher.resetText('#新浪潮论坛# ');
                        Weibo.Login.autoLogin();
                    </script> 
                  </div>
                  <div class="wl-content" id="list2"></div>
                  <script type="text/javascript" src="http://i0.sinaimg.cn/dy/js/jquery/jquery-1.7.2.min.js"></script>
                  <script type="text/javascript">
                    Weibo.encoding = 'gbk';
                    var list2 = new Weibo.Widgets.List({container: '#list2', showUserCard: false});
                    Weibo._getRequest({
                        url: 'http://topic.t.sina.com.cn/interface/ajax/get_feed_by_keyword',
                        data: {
                            keyword: "" || '新浪潮论坛',
                            page: 1,
                            pagesize: parseInt(("")*1,10) || 6
                        },
                        onsuccess: function(data) {
                            list2.reset(data);
                            setTimeout(function(){
                                $('.weibo-list-videolink').each(function() {
                                var parent = $(this).closest('.weibo-list-item');
                                var url    = parent.find('.weibo-list-time a').attr('href');
                                $(this).attr('href',url).removeClass();
                            });},200);
                        },
                        onfailure: function(status) {
                        }
                    });
                  </script>
                </div>
            </div>

在这里插入图片描述

发布了25 篇原创文章 · 获赞 2 · 访问量 3333

猜你喜欢

转载自blog.csdn.net/sinat_24918465/article/details/89450609