1

I have a set of pictures, when I click in one of them, I manage to build an image reference so another page opens in a new tab or a new window and my browser is displaying the picture.

My question is:

How I can link this a _blank pages (with images) with each other, like gallery.

dippas
  • 58,591
  • 15
  • 114
  • 126
Sonja
  • 19
  • 1

1 Answers1

1

Use a link:

<a href="yourimage.png" target="_blank"><img src="yourimage.png" /></a>
Daniel A. White
  • 187,200
  • 47
  • 362
  • 445
  • Thanks, Daniel. I use your cod, but it doesent connect the blank pages, like a gallery. http://www.ultramedika.rs/galerija.php – Sonja Jul 22 '15 at 21:51
  • You need to use Javascript to do that like a gallery. You can't do much just by using HTML. – Altay Mazlum Jul 23 '15 at 08:50
  • ok, can you help me then to insert javascript in my page. How to name script element and adapt script to my page.:) I have thumb (small) , and preview (big) images. – Sonja Jul 23 '15 at 11:28
  • @Sonja there are plenty of 3rd party ones out there. please do some research and let us know if you have a coding problem with them. we aren't here to write code for you. – Daniel A. White Jul 23 '15 at 12:08
  • Sorry for disturbance and disconvenience... I m just curious if I have to use javascript.:) – Sonja Jul 23 '15 at 16:59