html 框架 - 可以从页面中抓取 div 吗?
基本上我想做的是在我的网站上显示 Facebook 相册。
有没有一种方法可以从页面中取出一个 div 并将其与类似的框架放在您的页面上?
想不出更好的方法来做到这一点 atm - 客户不太精通计算机,但如果通过 Facebook 可以自己处理相册,
我想我的备份选项只是将图库页面链接到 Facebook 相册 - 但感觉有点很高兴只是让网站的一部分直接引导用户离开(但还不错,因为预算很低)
谢谢
basically what i want to do is display a facebook photo album on my website.
is there a way to just take a div from a page and put it on yours with like frames?
couldn't think of a better way to do it atm - client isnt exactly computer savy but could handle photo album himself if its through facebook
i guess my backup option is just to have the gallery page link to the facebook albums- but feels kind of cheep to be just to have part of the website just direct users away(but not too bad since the budget was low )
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有真正好的方法可以按照您要求的方式使用框架,并且跨域规则将阻止您使用 javascript 提取所需的内容。
我会建议一些对开发人员更友好的东西——比如 Flickr,那里有大量的 API 示例,可以让您获取有关每个图像的信息。
您可以选择格式,但从 Flickr 数据创建 XML 文件并将其传递到 jquery/flash 库中非常简单。
:)
There is no really good way to use frames in the way you're asking and cross domain rules will stop you pulling the content you want with javascript.
I would suggest something a little more developer friendly - like Flickr, there are heaps of API examples out there that will let you pull in info about each image.
From there is your choice of formatting, but making an XML file from the Flickr data and passing it into a jquery / flash gallery is pretty simple.
:)