• Creator
  • #2199749

    detect flash size with javascript


    by coolaid09 ·

    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:

All Answers

Viewing 0 reply threads