alexpalmbay
09-28-2009, 06:15 PM
Script: DHTML Modal window v1.1
Script URL:
http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/dhtmlmodal.htm
Problem:
How can I remove/disable the title bar?
How can I remove/disable the X to close the window?
Thanks in advance for your assistance!
alexpalmbay
09-29-2009, 02:20 PM
I found the solution on my own, and I hope this helps others.
1) In your index file, or the file you're calling the DHTML MODAL, search for the following:
var agreewin=dhtmlmodal.open("agreebox", "iframe", "yourfile.htm", "YOUR TITLE DESCRIPTION", "width=950px,height=500px,center=1,resize=1,scrolling=0", "recal")
2) Delete YOUR TITLE DESCRIPTION, but leave the double quotes
3) If you refresh your page, you'll notice the text to the title bar is no longer there, but the X is.
4) Open your dhtmlwindow.js file.
5) Search for the following:
<img src="'+this.imagefiles[1]+'" title="Close" />
6) Delete or comment out the above, refresh your page, and now your title bar is only 1px in height.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.