detect flash size with javascript - TechRepublic
Question
August 7, 2009 at 01:34 PM
coolaid09

detect flash size with javascript

by coolaid09 . Updated 16 years, 11 months ago

Hello, I am trying to dynamically detect the size of flash being loaded into a window, and then write out the javascript embed tags so that they include the detected height and width. The page I have does not have a body tag – it’s being pulled into another html page. The flash file is chosen by a user, via a form.

In the “header” area, I have:

Then, in the area where flash is embeded:

<a href=”javascript:getDimensions(‘detectme’);”>Click Here For Dimension Information</a> I’ve tried writing out the ‘height’ and ‘width’ variables in the embed javascript and that didn’t work. I’ve also tried trying to write out the width and height variable names with document.write and put:

This discussion is locked

All Comments