Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Overlapping part of a ".swf"

Status
Not open for further replies.

maxvava

Programmer
Jan 10, 2008
1
FR
I have a html page that launch a "swf" page by creating a object string then calling an document.write() - see code below -

I would like to overlap part of the swf section with some static image.

I have tried using standard CSS techniques with no success. Also tried using <iframes> with the swf being include in one iframe, and my static image in another. Unfortunatly it doesn't work. Is there a "param" that I am missing ? or any other suggestion ...

Merci


showIntroContent(parModule){
var obj_str = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" width="800" height="600" id="intro" align="middle">' +
'<param name="allowScriptAccess" value="sameDomain"/>' +
'<param name="movie" value="learningElements/'+parModule+'/intro.swf"/>' +
'<param name="quality" value="high"/>' +
'<param name="menu" value="false">' +
'<param name="bgcolor" value="#ffffff"/>' +
'<embed src="learningElements/'+parModule+'/intro.swf" quality="high" bgcolor="#ffffff" width="800" height="600" name="intro" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage=" +'</object>';

document.write(obj_str);
 
I have never tried it but have put the swf in a div of it's own and tried to position a div with the image on top of it? Perhaps that's what you mean by trying CSS...but just thought I would toss it in.

Steve
- I have fun with telemarketers
 
You can use wmode - Possible values: window, opaque, transparent. Sets the Window Mode property of the Flash movie for transparency, layering, and positioning in the browser.

* window - movie plays in its own rectangular window on a web page.
* opaque - the movie hides everything on the page behind it.
* transparent - the background of the HTML page shows through all transparent portions of the movie, this may slow animation performance.

Example:

'<param name="wmode" value="transparent">' +

 
Wouldn't it be great if people who asked questions were courteous enough to respond with what solution worked?

That would be an acknowledgment of us that take the time to offer our knowledge and would also confirm how smart we are when others are looking for the same info.

Steve
- I have fun with telemarketers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top