Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

A question for the Javascript guru's

Thread Tools
 
Search this Thread
 
Old 15 June 2006, 08:31 PM
  #1  
Markus
Scooby Regular
Thread Starter
 
Markus's Avatar
 
Join Date: Mar 1999
Location: The Great White North
Posts: 25,080
Likes: 0
Received 0 Likes on 0 Posts
Default A question for the Javascript guru's

I've got a web page which displays thumbnails of pictures, and when you click on the thumbnail, a javascript executes which opens a new window and displays the full size version of the image.

when the script is called I pass it the size of the image it's going to open, so it can size the new window to fit the picture. whilst this is all good an well, I'd prefer it if I could get the script to work out the size of the image it's going to load and then scale the window.

Can someone give me some pointers, or code on how to do this, if, of course, it is possible.
Old 15 June 2006, 09:33 PM
  #2  
Hanslow
Scooby Regular
 
Hanslow's Avatar
 
Join Date: Mar 2001
Location: Derbyshire
Posts: 4,496
Likes: 0
Received 0 Likes on 0 Posts
Default

This might help
Old 15 June 2006, 10:53 PM
  #3  
RichB
Scooby Regular
 
RichB's Avatar
 
Join Date: Apr 1999
Location: Bore Knee Muff
Posts: 3,666
Likes: 0
Received 0 Likes on 0 Posts
Default

Can you use php as well?
Old 16 June 2006, 12:26 AM
  #4  
judgejules
Scooby Regular
 
judgejules's Avatar
 
Join Date: Nov 2000
Posts: 1,227
Likes: 0
Received 0 Likes on 0 Posts
Default

Tiz easy

http://www.sitepoint.com/article/res...it-images-size

google = the win

Jules
Old 16 June 2006, 01:22 AM
  #5  
Markus
Scooby Regular
Thread Starter
 
Markus's Avatar
 
Join Date: Mar 1999
Location: The Great White North
Posts: 25,080
Likes: 0
Received 0 Likes on 0 Posts
Default

Rich,
Yes, the server hosting the site supports php.

Jules,
Spooky, did happen to come across that page earlier.

I'll try a few things out tomorroe
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
slimwiltaz
General Technical
20
09 October 2015 07:40 PM
IanG1983
Wheels, Tyres & Brakes
2
06 October 2015 03:08 PM
Brzoza
Engine Management and ECU Remapping
1
02 October 2015 05:26 PM
the shreksta
Other Marques
26
01 October 2015 02:30 PM



Quick Reply: A question for the Javascript guru's



All times are GMT +1. The time now is 08:14 AM.