Advertisement

11.24.2008 at 06:18PM PST, ID: 23932856
[x]
Attachment Details

flash not displaying in IE using javascript and innerHTML

[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0
Tags:

microsoft, internet explorer, all versions, javascript, flash, innerHTML, IE all versions, http://zego.biz/usa/test/zego-sports-boat-accessories.php

hello everyone,

i am having difficulty getting flash to display on a web page in IE (all versions), even though it loads/displays just fine in FF, google chrome, and apple safari. the javascript debugger i have installed in IE shows no script errors upon loading the page.

i am using body onload to call an external function that uses innerHTML to insert the swf files into divs. could the innerHTML be the problem? what is perplexing is that, in IE, when i right click on the page location of the zegomodel.swf file (under the heading "color options") the flash context menu displays. yet, when i right click where the header and footer swf files are supposed to be, i get the usual browser context menu.

page URI is: http://zego.biz/usa/test/zego-sports-boat-accessories.php

i have included the code contained in the external js file (pagescripts.js) below. as far as relevant CSS -- neither the header, footer, nor the zegomodel have positioning on them, although the header is floated left.

thank you so very much in advance for your time.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
function flash(){
 
document.getElementById('flashheader').innerHTML='<object width=\"760\" height=\"90\" codebase=\"http://www.adobe.com/go/getflashplayer/" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"><param value=\"header3.swf\" name=\"movie\"/><param value=\"high\" name=\"quality\"/><param value=\"transparent\" name=\"wmode\"/><embed width=\"760\" height=\"90\" wmode=\"transparent\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer/" quality=\"high\" src=\"http://zego.biz/usa/swf/header3.swf\"/></object>';
 
document.getElementById('flashfooter').innerHTML='<object width=\"760\" height=\"48\" codebase=\"http://www.adobe.com/go/getflashplayer/" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"><param value=\"footer4.swf\" name=\"movie\"/><param value=\"high\" name=\"quality\"/><param value=\"transparent\" name=\"wmode\"/><img src=\"http://zego.biz/usa/images/footer.jpg\" width=\"760\" height=\"48\"/><embed width=\"760\" height=\"48\" wmode=\"transparent\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer/" quality=\"high\" src=\"http://zego.biz/usa/swf/footer4.swf\"/></object>';
 
      }
 
 function flash2(){
 
document.getElementById('flashmodel').innerHTML='<object width=\"495\" height=\"350\" codebase=\"http://www.adobe.com/go/getflashplayer/" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"><param value=\"zegomodel.swf\" name=\"movie\"/><param value=\"high\" name=\"quality\"/><embed width=\"495\" height=\"350\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer/" quality=\"high\" src=\"http://zego.biz/usa/swf/zegomodel.swf\"/></object>';
 
      }
Answered By: TimYates
Expert Since: 08/18/1998
Accepted Solutions: 3577
TimYates has been an Expert for 10 years 4 months, during which he has posted 20548 comments and answered 3577 questions. TimYates is just one of 601 experts in the JScript Zone. 2 experts collaborated on this answer, which was graded an "A" by the asker.
 
 
 
 
20081119-EE-VQP-47 - Hierarchy / EE_QW_2_20070628