View Full Version : Veil not disappearing

01-26-2009, 08:53 PM
1) Script Title: dhtml modal window

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

3) Describe problem: New guy here. I'm trying to use the modal window on the top of a home page to show some legal info, implementing as a page load with a hidden div. So far, I'm pretty much using the code out of the box. The window appears, the veil appears.

Problem: When I click the X at the top to close the window, the veil does not go away.

What am I missing?

01-26-2009, 09:09 PM
Please post a link to the page on your site that contains the problematic script or attach your code so we can check it out and help you.

01-26-2009, 09:13 PM
be warned, it's an adult oriented site.

the open line is commented out, this is a production page.

01-26-2009, 09:20 PM
Sorry then, the rules (http://www.dynamicdrive.com/forums/rules.htm) forbid links to adult sites on these forums. What you could do is remove all the unnecessary, adult material and only leave the code you are having problems with and post that here. Also, remove your link.

01-26-2009, 09:30 PM
From the top of the page as viewed in the browser:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<base href="http://store.mysite.com/merchant2/">
<link rel="stylesheet" href="windowfiles/dhtmlwindow.css" type="text/css" />
<script type="text/javascript" src="windowfiles/dhtmlwindow.js">
* DHTML Window Widget- Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
<link rel="stylesheet" href="modalfiles/modal.css" type="text/css" />
<script type="text/javascript" src="modalfiles/modal.js"></script>
<body bgcolor="black" link="white" alink="tomato" vlink="white">
<script type="text/javascript">
//var warningwin=dhtmlmodal.open("warningwin", "div", "warningdiv", "Legal", "width=350px,height=150px,left=150px,top=100px,resize=0,scrolling=0", "recal", "sessiononly") </script>

<div id="warningdiv" style="display:none">
<h4>Legal Notice</h4>