Java Script?

Soldato
Joined
29 Oct 2002
Posts
4,184
Location
London
Hey Guys,

Does anyone know where I can get javascript that would resize an orignal image for preview on website and when clicked opens in new brower in orginal size.

I have a website for a small wheelchair club based in Kingston, they have various images that they'd like to display in smaller size but also allow people to us them in full resolution for publisity.

Thanks for all you help in advance,
 
i think this can be done without js. when you have like <img> put inside the img tag, height: 100px width:100px; that way the image will be resized to that no matter what size the image is, then if clicked will go to the full size.
 
addy_010 said:
i think this can be done without js. when you have like <img> put inside the img tag, height: 100px width:100px; that way the image will be resized to that no matter what size the image is, then if clicked will go to the full size.

yeh if you done it like this

<a href="file.jpg"><img src="file.jpg" width="any_value" height="any_value" /></a>

it's been a while since i done html but that should work if my logic is right in my brain :p
 
roboffer said:
Or add a little more to the presentation with Lightbox or one of the other projects such as Thickbox that have been spawned from it.

http://www.huddletogether.com/projects/lightbox2/

http://jquery.com/demo/thickbox/

Both very simple to implement, simply download the relevant files and follow the steps included on the sites.

although they make for better presentation i just can't help but feel that the time taken from me clicking an image to the original size version popping up is way to long, it just looks like it kind of lags.

it's probably just me though that thinks this.
 
cremo said:
although they make for better presentation i just can't help but feel that the time taken from me clicking an image to the original size version popping up is way to long, it just looks like it kind of lags.

it's probably just me though that thinks this.

i think the same thing, though the thickbox is actually much quicker but then it doesn't have the nice affects.
 
Back
Top Bottom