Forums
This topic is locked
How do I center image in iframe
Posted 03 Mar 2004 17:39:07
1
has voted
03 Mar 2004 17:39:07 ralph waters posted:
I need to load an image in the center of an iframe (not an htm page) just the image. Some of my htm pages do load in to it, and that's OK. However, I'm doing a slide show with loads of images and I dont' want to create a htm page for each image. At the moment when my images load, they defaut to displaying top left in th iframe.Is there some javascript that will make the thumbnail load the bigger image in the center of the iframe?
many thanks,
Ralph.
Replies
Replied 04 Mar 2004 01:49:48
04 Mar 2004 01:49:48 Phil Shevlin replied:
You should only be loading html pages into an iframe (any frame or window for that matter). I assume you are linking directly to the image itself, bypassing the web page.
A number of modern browsers will display an image this way, but you won't be able to do anything with it. The browser gets its instructions from the html. No html - no instructions.
A number of modern browsers will display an image this way, but you won't be able to do anything with it. The browser gets its instructions from the html. No html - no instructions.