Solved

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

Posted on 2008-10-17
2
339 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now