Jump to content
xisto Community
tpeila

Enlarge Photo Script Needed

Recommended Posts

If I understood correctly what you want, then there are a lot of such scripts, especially using jquery, one them you can try is: "Galleria â A JavaScript gallery for the Fastidious" :P

You can find it here: https://galleria.io/

Or you can use any you like from this resource, it has a lot of good galleries with examples

http://forums.xisto.com/no_longer_exists/

It's not only a gallery, but as a script it can be used on your website images :P and by it I mean that most of those solutions :o

Share this post


Link to post
Share on other sites

I would also suggest Lightbox (http://forums.xisto.com/no_longer_exists/), which is probably the most well-known script used for this.

 

However, bear in mind that these scripts (usually) do not actually resize the images. Instead, you provide the script with both the small and the large image, and they display the large one when the small one is clicked. The following HTML code would usually be used:

 

<a href="path_to_the_large_image" rel="lightbox" target="_blank"><img src="path_to_the_small_image" alt="Small image" /></a>

Another good thing with these scripts is that they work in such a way that allows people without JavaScript enabled to open these images just like any other, in a new (or the same) browser window/tab. Of course, nowadays it is a bit unnecessary to talk about people with JavaScript disabled, isn't it?

Share this post


Link to post
Share on other sites

to Pyost,Yes, it seems that talking about JavaScript being turned off isn't a problem anymore, but for example, why are NoScript addons or widgets so popular? Do people really use them, I mean, what do people see in a website where the browser doesn't execute JavaScript? :PMost sites are so dynamic, that you can't navigate without javascript through the site, even though some sites might work. I agree that the best design is when your site can work with javascript and without javascript it could be usable, you could still see the things you need to use it. :PGalleria is a script and has a lightbox theme, which can be used, I can't remember why I preferred it over lightbox. :o

Share this post


Link to post
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...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.