Results 1 to 2 of 2

Thread: DHTML Window Widget Script

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

    Default DHTML Window Widget Script

    1) Script Title: DHTML Widget Script

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

    3) Describe problem:

    Hi guys,

    I've stumbled across this script and it's absolutley perfect for what I'm trying to achieve on my own website! It works great and looks fantastic. However, my knowledge of javascript is practically non existant, and I was wondering how I would go about making it appear only once per session?

    Thanks!

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

    Default

    Sure, just do the following:

    1) Replace the original dhtmlwindow.js file with the modified one below

    2) This modification adds an optional last parameter to dhtrmlwindow.open(), that when defined to 1, will cause that window to only appear once per browser session. For example:

    Code:
    var googlewin=dhtmlwindow.open("googlebox", "iframe", "http://images.google.com/", "#1: Google Web site", "width=590px,height=350px,resize=1,scrolling=1,center=1", "recal", 1)

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
  •