html 框架 - 可以从页面中抓取 div 吗?

发布于 2024-09-11 08:40:02 字数 239 浏览 2 评论 0原文

基本上我想做的是在我的网站上显示 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

GRAY°灰色天空 2024-09-18 08:40:02

没有真正好的方法可以按照您要求的方式使用框架,并且跨域规则将阻止您使用 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.

:)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文