Page 1 of 1

Image enlarger script needed please

Posted: Thu Jan 14, 2010 8:06 pm
by cturner
I am wondering if someone knows of a javascript or jquery script, which can enlarge images, either on mouseover or onclick. The images need to be able to edited in Adobe Contribute, this means that the editing will be very limited. Contribute can only do the following:

Code: Select all

<a href="#"><img src="image.jpg" height="100" width="100" alt="smaller image" class="enlarge" ></a>
Contribute can't add anything like rel="", onclick="" and onmouseover="" to anything. Is this possible? I have been looking for a suitable script for too long now, so I am hoping that this forum will be able to help me.

Re: Image enlarger script needed please

Posted: Fri Jan 15, 2010 1:03 am
by Christopher
Do you want to actually resize the image, or just have it appear bigger/smaller in the browser? To resize with PHP, use Imagick or GD. Use Javascript to change the width and height attributes to change the size of the image in the browser.

Re: Image enlarger script needed please

Posted: Fri Jan 15, 2010 7:45 pm
by cturner
Thanks for your reply, arborint. What I am after is something similar to Lightbox, but should be compatible with Adobe Contribute. Please see the first post in this thread for the details on what I am after. Contribute doesn't recognise PHP, only Javascript, CSS and of course HTML. So to answer your question, I am needing the images to appear bigger/smaller in the browser.