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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Floating Transparent iframe for IE & Firefox

Status
Not open for further replies.

bdichiara

Programmer
Oct 11, 2006
206
US
I'm trying to float a transparent iframe on an HTML page and in IE7, I get this black box or repeating content. What is the proper way to accomplish this. I'm trying to include a remote HTML file (which has our site navigation) that sits on our server in an HTML file on someone else's server. (man it would be nice if we could just their content in an iframe...)

Here's my code:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>menu</title>
<style type="text/css">
<!--
#nav {
  position:absolute;
  z-index:10;
  left: 0px;
  top: 0px;
  overflow:hidden;
  background-color:transparent;
}

#content {
  margin-top:30px;
}
-->
</style>
</head>

<body style="margin:0px;">
<iframe id="nav" allowtransparency="true" width="100%" height="500" frameborder="0" src="[URL unfurl="true"]http://www.alatelco.org/dhtmlmenu.htm"></iframe>[/URL]
<div id="content">
  my content goes here.
</div>
</body>
</html>
link:
_______________
_brian.
 
Anybody ever had to deal with this?

_______________
_brian.
 
Any navigation inside the iframe will only change the html inside the iframe.

Am I understanding the question correctly?

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Well, the navigation is all set to open in _parent, so that's not really an issue. I'm just trying to get rid of the background nonsense. it doesn't work the same like it does in firefox.

_______________
_brian.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top