Galleriffic-从页面外部链接到画廊中的特定图像 [英] Galleriffic -- Linking to specific image in gallery from outside the page
问题描述
如果标题不清楚,我将在此处进行详细说明.
If the title isn't clear enough I'll go into some detail here.
我已经在不同的html页面上创建了多个Galleriffic画廊,每个画廊由5至25张图片组成.我想要实现一个下拉菜单,用户可以在其中跳转到任何图库中的任何特定图像.但是,这似乎不起作用.我尝试创建一个链接到Galleriffic生成的#的表单,但似乎无法弄清楚如何调用该图像.每当我尝试时,它只会将图库中的第一张图像加载.
I've created multiple galleriffic galleries each on different html pages, each gallery consisting of 5-25 images. What I would like is to implement a drop down menu where a user can jump to any specific image in any gallery. However this doesn't seem to work. I tried creating a form which links to the # generated by galleriffic, but can't seem to figure out how to make the image get called. Whenever I try it simply loads the first image in the gallery.
我对jQuery或PHP并不太熟练,我知道我需要使用这些语言进行一些技巧.
I'm not overly proficient with jQuery or PHP, and I know I need some trickery with these languages to work.
下面是索引页面以及我要调用的另一个页面的示例.
Below are examples of the index page, and another page I'm trying to call.
https://s3-us-west-1. amazonaws.com/integra2010/optics/index.html https://s3-us-west-1.amazonaws.com/integra2010/optics/butterscotch.html
https://s3-us-west-1.amazonaws.com/integra2010/optics/index.html https://s3-us-west-1.amazonaws.com/integra2010/optics/butterscotch.html
该下拉菜单当前仅包含3个链接,我想将这些3,4,5图像加载到硬糖页面上.
The drop down menu currently contains just 3 links, which I want to load image 3,4,5 on the butterscotch page.
任何帮助将不胜感激.
谢谢!
推荐答案
将 butterscotch.html 重命名为 butterscotch.php ,并在 .galleriffic之后添加到脚本中( )
<?php
$id = strrchr($_SERVER['REQUEST_URI'], '#');
if ($id) echo "$('#thumbs a[href=\"{$id}\"]').click();";
?>
这篇关于Galleriffic-从页面外部链接到画廊中的特定图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!