PDA

View Full Version : dhtmlmodal window border



elrogir
11-22-2007, 02:35 PM
1) Script Title: dhtmlmodal

3) Describe problem: Tell me please, how can i hide border, shown on picture. :confused:
http://web-segment.ru/_new/windowfiles/dhtmlmodal_border.jpg

http://web-segment.ru/_new/windowfiles/dhtmlmodal_border.jpg

ddadmin
11-24-2007, 01:35 AM
Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

Inside dhtmlwindow.js, the following line is what renders the IFRAME used by the window to show content:


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

If you wish to completely remove any borders of the IFRAME from showing, try adding the part in red to this line:


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