为所有了解画廊的人简要介绍如下:
我在指向图像的标签列表上的 rel 属性内有一个数值。
我已经设法获取这个数字并将其与 galleriffic 用于存储图像信息的 imageData 对象关联起来。
我不能做的是使用 .css() 将此值应用到标签中。
我想单独更改每个图像的填充,以便我可以拥有以下内容
输出:
或者
改变填充
两者都有相同的结果,
我无法在 javascript 代码中找到何处来调用以下命令来执行此操作:
$("#slideshow").css("top",imageData.padd+"px");
以下是我的示例的链接:http://www.44db.com/demo/snf-grands/
The brief is the following for all those who know galleriffic:
I have a numeric value inside a rel attribute on the list of a tags that point to the images.
I have managed to get this number and assocciate it with the imageData object that galleriffic uses to store the image info.
What I cannot do is apply this value using .css() for example into the tag.
I want to change the padding for each image individually so that I can have the following
output:
OR
change the padding of the
both have the same result
I cannot find where in the javascript code to call the following command to do this:
$("#slideshow").css("top",imageData.padd+"px");
Here is a link to my example: http://www.44db.com/demo/snf-grands/
发布评论
评论(1)
快速查看示例页面和 Galleriffic 后,您似乎只需将选项
onSlideChange
添加到 Galleriffic 初始化并在那里添加您的函数即可。也许您必须从该函数中的 rel-tag 中提取填充,但由于您似乎比我更了解 Galleriffic,因此这对您来说应该不成问题。
after a quick look at your example-page and Galleriffic it seems like you could just add the option
onSlideChange
to your Galleriffic-initialization and add your function there.Maybe you will have to extract the padding out of the rel-tag within this function, but since you seem to know Galleriffic better than me, this should be no problem for you.