View Full Version : DHTML Modal window v1.1

05-17-2008, 02:46 AM
1) Script Title: DHTML Modal window v1.1

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

3) Describe problem:
It's possible to display it 1 time for each browser session, and or after cetain hour before it can display again ?

05-19-2008, 12:53 AM
Sure, try the below modified modal.js file, which adds once per session display of a modal window. With it, you can define an optional last parameter to turn the feature on:

var agreewin=dhtmlmodal.open("agreebox", "iframe", "modalfiles/agreement.htm", "This Page's Terms of service", "width=590px,height=450px,center=1,resize=1,scrolling=0", "recal", "sessiononly")