View Full Version : DHTML Window widget (Once Per Browser Session)

11-16-2007, 12:40 AM
DHTML Window widget (v1.1)
1) Script Title: DHTML Window widget (v1.1)

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

3) Describe problem: I'm just looking for a code to display this DHTML window widget only once per browser session, or once every X minutes. Is it possible?

Thank you.

11-16-2007, 11:19 AM
For the "once per browser session" control feature, there's this thread (http://www.dynamicdrive.com/forums/showthread.php?t=20624) discussing this already. However, it's based on modding v1.03 versus the current v1.1, though the process is actually exactly the same.

Attached is the modified v1.1 dhtmlwindow.js file with session only pop up ability added. To get this window to only pop up once per browser session, throw in a new parameter at the very end of open():

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