?
Solved

i need a div that contains information over a swf.. is there any way to do this?

Posted on 2008-10-17
2
Medium Priority
?
344 Views
Last Modified: 2012-08-13
is there any way to make a div ( that contains some html information ) over a swf file?

i mean to say a div over a swf file in a html page?
0
Comment
Question by:danielnp20
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 44

Expert Comment

by:scrathcyboy
ID: 22745595
SWF almost always takes priority in visibility and Z-index, but you should be able to put it into a DIV and toggle the visibility of that DIV, like this --

document.getElementById ('swfDiv').visibility.display = "none"  (  to hide it, and "block" to display it )

However, as soon as the SWF starts playing, it will always regain foreground, even if none, I think -- you should try it to see if that happens -- i.e. hide it with none on page load, and see if it takes foreground.

If not, you can use the visibillity on the DIV called "swfDIV" and this will work, but try it in ALL browsers to make sure, probably IE6 will not work.

Other than this, rearrange the page layout to give the SWF its own place,  OR else just load the SWF file on click of a link
0
 
LVL 44

Accepted Solution

by:
scrathcyboy earned 1500 total points
ID: 22745621
Sorry, that was --
document. getElementById("swfDIV").style.display = "none";  (opposite here is "block" )

or you can use the visibility property too --
document. getElementById("swfDIV").style.visibility = "hidden";  (the opposite here is "visible" )
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question