使用ID将Instagram Feed导入嵌套Div

时间:2014-02-06 00:13:46

标签: javascript jquery html css instagram

我有一个div,它嵌套在另外两个div中,但是没有通过ID提取Instagram Feed,但是当我把它拿出并自己显示它时就会显示。

如何更改js文件或HTML中的代码,以便在嵌套时显示

这是JS文件的相关部分......

 $(function() {
var cmdURL, embedImage, onPhotoLoaded, param, tag_name, userid,
param = {
access_token: '******************', // feel free to change it with your own access token
count: 10 // the total number of images
},
tag = 'Gezza', // your user id. you can find this one out by looking into one of your pictures uri
tag_name = '#photowall',
cmdURL = 'https://api.instagram.com/v1/tags/' + tag + '/media/recent?callback=?';

这是HTML

 <div class="col-md-4 col-sm-4 home3block">
          <div class="block">
              <img src="assets/images/instagram-logo.gif">

              <!-- START PHOTOWALL -->
              <div id="photowall">
              </div>
              <!-- CLOSE PHOTOWALL -->


         </div>
      </div>

我需要#photowall在col-md-6和block divs

0 个答案:

没有答案
相关问题