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 Jun 15, 2006 | 08:31 PM
  #1  
Markus's Avatar
Markus
Thread Starter
Scooby Regular
25 Year Member
 
Joined: Mar 1999
Posts: 25,080
Likes: 0
From: The Great White North
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.
Reply
Old Jun 15, 2006 | 09:33 PM
  #2  
Hanslow's Avatar
Hanslow
Scooby Regular
 
Joined: Mar 2001
Posts: 4,496
Likes: 0
From: Derbyshire
Default

This might help
Reply
Old Jun 15, 2006 | 10:53 PM
  #3  
RichB's Avatar
RichB
Scooby Regular
 
Joined: Apr 1999
Posts: 3,666
Likes: 0
From: Bore Knee Muff
Default

Can you use php as well?
Reply
Old Jun 16, 2006 | 12:26 AM
  #4  
judgejules's Avatar
judgejules
Scooby Regular
 
Joined: Nov 2000
Posts: 1,227
Likes: 0
Default

Tiz easy

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

google = the win

Jules
Reply
Old Jun 16, 2006 | 01:22 AM
  #5  
Markus's Avatar
Markus
Thread Starter
Scooby Regular
25 Year Member
 
Joined: Mar 1999
Posts: 25,080
Likes: 0
From: The Great White North
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
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
Nov 4, 2021 07:12 PM
slimwiltaz
General Technical
20
Oct 9, 2015 07:40 PM
IanG1983
Wheels, Tyres & Brakes
2
Oct 6, 2015 03:08 PM
Brzoza
Engine Management and ECU Remapping
1
Oct 2, 2015 05:26 PM
the shreksta
Other Marques
26
Oct 1, 2015 02:30 PM




All times are GMT +1. The time now is 02:53 AM.