Veggie
03-12-2005, 08:23 PM
Ok I have an html page that has a css layout. What I want to do is place an iframe in the content section of the page and have the iframe the size of the div layer? and the div layer has to be collapsible.
|
View Full Version : putting an Iframe into a div? Veggie 03-12-2005, 08:23 PM Ok I have an html page that has a css layout. What I want to do is place an iframe in the content section of the page and have the iframe the size of the div layer? and the div layer has to be collapsible. Rosey 03-12-2005, 10:40 PM you won't be able to collapse it without some sort of dhtml or javascript. Do you have an example of a page that has what you need? Veggie 03-13-2005, 01:52 PM I figured I'd need a javascript, and no I don't have a example page. Should I post this in the Javascript forum? Veggie 03-13-2005, 02:31 PM (I'm sorry if this is considered double posting, the edit button wasn't available) This is really strange, I did a little more research into dhtml and I believe I would access my iframe in javascript by do this : <iframe id="cframe" Width=400px Height=300px src="test.html" align="center" frameborder=0> the in Javascript : document.all("cframe"). so I tried a little script, and it seems that any html, or javascript placed after the <iframe> tag in the <div> is not working. Rosey 03-13-2005, 05:34 PM you might want to try searching dynamicdrive.com . i looked but the only thing i found worked in IE and you don't really want to do that ;) |