Results 1 to 3 of 3

Thread: DHTML Window Widget positioned to the right

  1. #1
    Join Date
    May 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DHTML Window Widget positioned to the right

    1) Script Title: DHTML Window Widget

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/

    3) Describe problem:

    Thank you for this fantastic script! I have one issue, I want to be able to specify the position of the dhml window to the right of the screen. Is there a way to do this?

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

    Default

    Try the modified dhtmlwindow.js file attached below. It adds support for a "right" attribute:

    Code:
    dhtmlwindow.open("broadcastbox", "inline", "This is some inline content. <a href='http://dynamicdrive.com'>Dynamic Drive</a>", "#2: Broadcast Title", "width=300px,height=120px,right=10px,resize=10px,scrolling=0, right=1", "recal")
    This would position the window 10px to the right edge of the window horizonally, for example. Note that the minimum value you can specify is 1px (not 0px).

  3. #3
    Join Date
    May 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It works, much appreciated. Many thanks!

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
  •