Results 1 to 3 of 3

Thread: Window Widget - dialog window?

  1. #1
    Join Date
    Jan 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Window Widget - dialog window?

    1) Script Title: Window Widget

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ndow/index.htm

    3) Describe problem: I want to use the pop-up window as a modal dialog window without the minimize icon -- is there a configuration option to remove or at least disable the icon on the window?

    If not, I do see where the image is displayed in the source but I do not see where the click event attached to the image is defined. I'm afraid if I simply prevent the image from displaying that it will break something.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Sure, to prevent the minimize icon from showing, just add the code in red to the below line in the .js:

    Code:
    domwindowdata+='DHTML Window <div class="drag-controls"><img src="'+this.imagefiles[0]+'" title="Minimize" style="display:none" /><img src="'+this.imagefiles[1]+'" title="Close" /></div>'

  3. #3
    Join Date
    Jan 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you - perfect. This solution is so easy that I had to bonk myself in the head and say duh.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •