View Full Version : DHTML Window widget - Lanuch from a link?

12-05-2008, 06:31 PM
1) Script Title: DHTML Window widget (v1.1)

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

3) Describe problem:

We would like to use this script however instead of the widget window appearing automatically when you visit the page, we would like them to launch via a click from a link.

Does anyone know what lines we need to alter to make that happen?

Any help will be greatly appreciated!!!!!

12-05-2008, 08:38 PM
If you look at the script page on DD on stage 2 you can see this:
Here are two examples, one opening a DHTML window automatically as the page loads, the other, when the user clicks on a link:

<script type="text/javascript">
var googlewin=dhtmlwindow.open("googlebox", "iframe", "http://google.com", "Google Web site", "width=700px,height=450px,resize=1,scrolling=1,center=1", "recal")

<a href="#" onClick="ajaxwin=dhtmlwindow.open('ajaxbox', 'ajax', 'external.htm', 'Ajax Win Title', 'width=650px,height=400px,left=300px,top=100px,resize=0,scrolling=1'); return false">Create/ Open Ajax Window</a>
You need the second one.