Jump to content

How to do this


OfekR

Recommended Posts

Hello,

I need to know how you do this in HTML:

I want when you click on a image(or some text) it opens it not in a new webpage, I just want it to "popup" the image(or something else), like in the following images:

d5m4ejmrqyzm.png

(click for full size)

tny1zyguyqwg.png

 

Thank You!

Link to comment
Share on other sites

The easy way to do something similar is to make the thumbnail image a link to the image file, but then you will be taken to the image file and will have to click the back button to return. The fancier way is to use a hidden overlay container and Javascript.

Edited by davej
Link to comment
Share on other sites

Just go to the bottom of your page and create a new div. Give the div an id. Put an image inside the div. Go up and style that id to be absolutely or fixed positioned with display:none. Then create a button that will call a routine that will change the style of that div from display:none to display:block.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...