Results 1 to 2 of 2

Thread: DHTML Window widget - Lanuch from a link?

  1. #1
    Join Date
    Dec 2005
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy DHTML Window widget - Lanuch from a link?

    1) Script Title: DHTML Window widget (v1.1)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ndow/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!!!!!

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    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:
    HTML Code:
    <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")
    </script>
    HTML Code:
    <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.

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
  •