use javascript/jquery/PHP to call automatically img link 1.jpg, 1.1.jpg, 1.2.jpg, 2.jpg, 3.jpg ... instead call them in each links -


i'm using fancybox , display gallery call images

<a class="fancyboxgallerybook1" data-fancybox-group="book1" href="http://www.domaine.com/wp-content/uploads/books/1-latest/1.jpg" title="">  <img class="fancyboxthumbnailsgallerybook1" src="http://www.domaine.com/wp-content/uploads/books/1-latest/01.jpg" alt=""/>  </a>  <a class="fancyboxgallerybook1" data-fancybox-group="book1" href="http://www.domaine.com/wp-content/uploads/books/1-latest/2.jpg" title="">  <img class="fancyboxthumbnailsgallerybook1" src="http://www.domaine.com/wp-content/uploads/books/1-latest/02.jpg" alt=""/>  </a>   ... 

can use javascript, jquery, php ... in page call images present in folder in ascending order, mean: 1.jpg, 1.1.jpg, 2.jpg, 3.jpg, 4.1.jpg, 4.2.jpg, ... automatically without set numbers in each links

<a class="fancyboxgallerybook1" data-fancybox-group="book1" href="http://www.domaine.com/wp-content/uploads/books/1-latest/" title="">  <img class="fancyboxthumbnailsgallerybook1" src="http://www.domaine.com/wp-content/uploads/books/1-latest/" alt=""/>  </a>  <a class="fancyboxgallerybook1" data-fancybox-group="book1" href="http://www.domaine.com/wp-content/uploads/books/1-latest/" title="">  <img class="fancyboxthumbnailsgallerybook1" src="http://www.domaine.com/wp-content/uploads/books/1-latest/" alt=""/>  </a>   ... 

update question

can generate gallery directly php without changing structur ?


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -