Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Embedding Facebook in an IFrame

I have an app that has an IFrame with a page flash overly allowing you to draw on webpages. When I go to Facebook with the application, an overlay pops up covering everything at 50% opacity (Which is fine). The problem is that the overlay is all black in some installations of IE7. Can anyone advise on how to get around this?

Here is my code:

<iframe name="test" ID="test" src="http://www.facebook.com/cyberkruz" height="200" style="width: 100%; height: 100%" allowtransparency="true"></iframe>

Here is the code that they generate that does this.

<div style="z-index: 1000001; position: absolute; filter: alpha(opacity = 50); WIDTH: 9999px; background: black; height: 9999px; top: 0px; left: 0px; opacity: 0.5;" onclick="top.location.href=window.location.href"/>

Is there something I can do with meta tags or something to get the filter alpha to work correctly?

like image 246
Matthew Kruskamp Avatar asked Feb 22 '26 22:02

Matthew Kruskamp


1 Answers

Basically, you cannot do this as you cannot modify items inside an IFrame like this. The only option is to screenshot the requested page and then display it over top.

like image 126
Matthew Kruskamp Avatar answered Feb 26 '26 09:02

Matthew Kruskamp