Solved

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

Posted on 2008-10-17
2
342 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 500 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

Independent Software Vendors: 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

Suggested Solutions

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…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

697 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