Detect <DIV> size and insert into another page?
I have a goal in mind, and that is to get the width & height of a <DIV> tag in one document and insert them into another document...all on the same domain. It sounds like a simple task, but in case more detail is needed, let me explain:
I have a page called 'demo.html' which launches a page called 'gallery/archive_iframe.html' via Shadowbox as an iFrame. The problem is that 'gallery/archive_iframe.html' slightly differs in dimension on every browser and screen resolution. I want to have the iFrame's size detected every time it launches so Shadowbox can get solid dimensions to display it without scrollbars.
You can see the current (fixed size) example at:
Click on the 'Video Archive' image.
Here is the code I would like to insert the dimensions in to:
All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.
Any ideas as to other ways to get the width & height of the content area of a page?
|All times are GMT +1. The time now is 10:20 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.