Edit the main script at the end, comment out (red) the highlighted part as shown:
Code:
cleanup:function(){
for (var i=0; i<dhtmlwindow.tobjects.length; i++){
dhtmlwindow.tobjects[i].handle._parent=dhtmlwindow.tobjects[i].resizearea._parent=dhtmlwindow.tobjects[i].controls._parent=null
}
window.onload=null
}
} //End dhtmlwindow object
//document.write('<div id="dhtmlwindowholder"><span style="display:none">.</span></div>') //container that holds all dhtml window divs on page
window.onunload=dhtmlwindow.cleanup
Next, after your picture, where you want these windows showing up, put this:
HTML Code:
<div id="dhtmlwindowholder" style="position:relative; display:inline;"><span style="display:none">.</span></div>
Now, the DHTML windows will be written there. Just make sure that you don't call anything like:
Code:
<script type="text/javascript">
var googlewin=dhtmlwindow.open("googlebox", "iframe", "http://google.com", "Google Web site", "width=700px,height=450px,left=0px,top=0px,resize=1,scrolling=1,", "recal")
</script>
until after the added HTML code we just put in after your picture. Something like this:
Code:
<a href="#" onClick="ajaxwin=dhtmlwindow.open('ajaxbox', 'ajax', 'external.htm', 'Ajax Win Title', 'width=650px,height=400px,left=0px,top=0px,resize=0,scrolling=1'); return false">Create/ Open Ajax Window</a>
can go anywhere, but will not work until after the browser has parsed the added HTML code, so best to keep those kind of things after the added HTML code as well.
Notice how in both calls to dhtmlwindow.open() that I've set the top and left to 0px. This should make them appear right at the spot where we added the new (moved actually) dhtmlwindowholder division.
Bookmarks