Solved

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

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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 …
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

809 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