0

我在这个页面 www.vivopositivo.it/media/foto/guarda-chi-sorride-over-18-e-famiglie/ 上遇到了一个奇怪的问题,带有类似按钮。我正在使用 PrettyPhoto 来包含来自 Flickr 的图片并在灯箱中打开它们。每张图片都有自己的类似按钮,该按钮显示在灯箱中并使用特定的 URL,例如:

http://www.vivopositivo.it/media/foto/guarda-chi-sorride-over-18-e-famiglie/#prettyPhoto[pp_gal]/1/

其中#prettyPhoto[pp_gal]/1/ 中的数字是特定图像的键。

类似按钮包含在以下代码中:

iframe src="//www.facebook.com/plugins/like.php?locale=en_US&href={location_href}&layout=button_count&show_faces=true&width=500&action=like&font&colorscheme=light&height=23" scrolling="no" frameborder="0" 样式="边框:无;溢出:隐藏;宽度:500px;高度:23px;" allowTransparency="true" /iframe

其中 {location_href} 被替换为图像特定的 URL。

这适用于大多数图像,但对于其中一些图像不起作用!他们似乎得到了页面的类似计数器,因此,我得到了大约 10 张图像,它们显示了相同的 128 个类似计数器,这显然是错误的。这似乎完全随机..

您对如何解决此问题有任何想法吗?

干杯,安德里亚

4

1 回答 1

0

这是因为 URL 中的 # 标识了图像。

请参阅此帖子以获取更多说明。

于 2012-05-14T12:02:24.027 回答