Closed estebandinamarca closed 10 years ago
you can try with css:
a.cell {
display:block;
float: left;
}
I am repeating the route: galerias/galeria1/{index}.jpg
Here:
var temp = "<a href='galerias/galeria1/{index}.jpg' class='cell' style='width:{width}px; height: {height}px; background-image: url(galerias/galeria1/{index}.jpg)'></a>";
and this is the results:
The "background-image" is not working.
Because this (line 34):
.replace("{index}", i + 1);
you can try:
.replace(/\{index\}/gi, i + i);
It works!
Many Thanks from Chile!
You are welcome!
I am using Freewall and Fancybox to display images as a gallery popup. Specifically on the "image-layout.html", (Line 30), I can not use a dynamic "href" element for a link.
Example:
var temp = "<a href='here dynamic url' class='cell' style='width:{width}px; height: {height}px; background-image: url(galerias/galeria1/{index}.jpg)'></a>";
How I can solve this?
Thanks!