Hello so iam kinda new to scripts and ect and i need some help
So iam using this script
Every thing works if i use one div gallery but when i close it and open again script does not work anymore. So i was thinking no problem i will just open div gallery somewhere on top and wont close it but… if there is option like “read more” or link it will track it as a image and will stuck.
Like this it works
<div id="gallery">
<!-- Regular images -->
<a href="images/1 . jpg"><img src="images/1_thumb . jpg" alt="" title="Išorė (#1)" /></a>
<a href="images/1 . jpg"><img src="images/1_thumb . jpg" alt="" title="Išorė (#1)" /></a>
</div>
but if i try open another div with same name it will stop working…
Image what i have in my mind http://image.prntscr.com/image/cd21d10a400b4cd9b0face04228e8012.png
what i wanna do is,
<p> some random text about something </p>
<div id="gallery">
<!-- Regular images -->
<a href="images/1 . jpg"><img src="images/1_thumb . jpg" alt="" title="Išorė (#1)" /></a>
</div>
NEW POST
<p> some random text about something </p>
<div id="gallery">
<!-- Regular images -->
<a href="images/1 . jpg"><img src="images/1_thumb . jpg" alt="" title="Išorė (#1)" /></a>
</div>
for now with that script i cant do that becouse second post will not work it will open full size image in new tab
<hr>
<div align="justify">
<form>
<fieldset>
<br>
<small><strong> 2017-02-28 │ TITLE NAME </strong> </small>
<br>
<p> some text about what happened</p>
<p>MORE details text about what happened</p>
<p>what will happen next text
<br>
</p><center>
<div id="gallery">
<!-- Regular images -->
<a href="images/1 . jpg"><img src="images/1_thumb . jpg" alt="" title="Išorė (#1)" /></a>
</div>
</center>
<br>
</fieldset></form>
</div>
<hr>
is there is anyway i can do it like that? open again <div id="gallery">
in new post and some image close it and repeat