-
DHTML Modal: Remove/Disable Title Bar
Script: DHTML Modal window v1.1
Script URL:
http://www.dynamicdrive.com/dynamici...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!
Last edited by alexpalmbay; 09-28-2009 at 06:24 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.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks