helpmefoo
helpmefoo

Reputation: 1

Image resize script

I'm searching a javascript that can resize images similar to script thats available as a plugin in vBulletin CMS:

enter image description here

I want the script to be used in blogger blog so that all images i upload into a post are resized to a smaller res and on clicking the image should be displayed in original dimensions

Something of the sort getelementbyID("img").

are there any script providing this feature? Pls help me out

Thanks in advance.

Upvotes: 0

Views: 615

Answers (2)

cmcculloh
cmcculloh

Reputation: 48613

If you don't want to use a server side script to automatically create a smaller version of the image that you would link to the larger version, I wouldn't recommend using JavaScript to resize an image either. I'd recommend setting the image's dimensions in CSS and then attaching a click handler with JS that showed the image in some sort of overlay (or just using HTML to link to the larger image file).

Upvotes: 0

Matt Ball
Matt Ball

Reputation: 359876

Something like a lightbox, perhaps?

I know the specific interaction you're asking about, and personally, I've always found it really obnoxious.

Upvotes: 1

Related Questions