Image enlarger script needed please

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
cturner
Forum Contributor
Posts: 153
Joined: Sun Jul 16, 2006 3:03 am
Location: My computer

Image enlarger script needed please

Post 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.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Image enlarger script needed please

Post 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.
(#10850)
User avatar
cturner
Forum Contributor
Posts: 153
Joined: Sun Jul 16, 2006 3:03 am
Location: My computer

Re: Image enlarger script needed please

Post 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.
Post Reply