PDA

View Full Version : DHTML window top/left bar



sofabed
04-21-2007, 02:14 PM
DHTML Window Widget

http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm

When I use the widget to open a web page (e.g. google) using iframe, I will always see a black border on the top and on the left of the content displayed. I looked at the css but don't see where they come from. Please advise how I can remove them.

Thanks for your help!

jscheuer1
04-22-2007, 02:14 AM
That is the default appearance of an iframe. If you like, you can go into dhtmlwindow.js and change this:


t.contentarea.innerHTML='<iframe src="" style="margin:0; padding:0; width:100%; height: 100%" name="_iframe-'+t.id+'"></iframe>'

to:


t.contentarea.innerHTML='<iframe frameborder="0" src="" style="margin:0; padding:0; width:100%; height: 100%" name="_iframe-'+t.id+'"></iframe>'

sofabed
04-22-2007, 10:13 AM
Works like a charm. Thanks for the great help!