PDA

View Full Version : DHTML Window Widget positioned to the right



Dingo
05-03-2007, 11:33 AM
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?

ddadmin
05-04-2007, 07:59 AM
Try the modified dhtmlwindow.js file attached below. It adds support for a "right" attribute:


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).

Dingo
05-10-2007, 12:36 PM
It works, much appreciated. Many thanks!