I
I
iamrealnikky2016-02-08 15:58:46
HTML
iamrealnikky, 2016-02-08 15:58:46

How to automatically create an array of links to numbered files?

You need to create about 500 links to create a view gallery:

<a href="images/image0136.jpg" ><img src="thumbnails/image0136.jpg"/></a>
<a href="images/image0137.jpg" ><img src="thumbnails/image0137.jpg"/></a>
<a href="images/image0138.jpg" ><img src="thumbnails/image0138.jpg"/></a>
<a href="images/image0139.jpg" ><img src="thumbnails/image0139.jpg"/></a>

All links lead to files of the form "image0139.jpg", "image0140.jpg", "image0141.jpg", etc., numbered in the usual order. How to make HTML code automatically if you need to change only the serial number of the file in the link code? I use Dreamweaver, but any program will do.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
iamrealnikky, 2016-02-14
@iamrealnikky

I found the answer myself, it's very simple in Dreamweaver,
we make 100 links manually,
then we simply use the ctrl + f function to replace it
with
ie. we get the second hundred links
can be repeated indefinitely with 10, 100 and 1000 links, etc.
so two paths are indicated, to the thumbnails and to the actual images, I replaced the lines "image01" with "image02", etc., because all the images in both folders are named the same, and the icons and the images themselves,
with each replacement for the next number, I got 100 new links, manually writing almost 1000 links would be much more difficult

A
Alexander Movchan, 2016-02-08
@Alexander1705

javascript?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question