• 0

Special way to open images?


Question

Two questions,

1| Can someone point me in the direction of how to make images open like many sites do these days, how when you click a thumbnail the picture will grow in the middle and the background website will fade out slightly black.

2| Also while your at it is it possible to put a banner on a thumbnail, using code not a photo edditing application, that shows what its actual size is?

Thanks very much to anyone who can help.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hi,

1) You need something like Lightbox. There is enough info on that site to get you started.

2) You'd need a server side script to process the image to put your thumbnail on the image before sending it to the response stream. Have you had any experience with server side technologies?

Link to comment
Share on other sites

  • 0

Lightbox is the most common image popup you see across the internet that meets your needs...as for adding the actual size of the image onto an image presuming you are using php a good place to start is:

http://www.php.net/manual/en/function.imagegd2.php

There are simple functions to fetch an images size, however then placing that as text onto the image is a little bit more complex but adchieveable - there's all sorts of settings you can use including uploading your own font files to use.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.