PDA

View Full Version : DHTML Modal window v1.1 - Reclicking/reopening windows



megana
01-14-2009, 10:14 PM
1) Script Title: DHTML Modal window 1.1

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

3) Describe problem: I am using this with iframes and have altered the background colors in dhtmlwindow.css to match my site. The modal window looks beautiful the first time, but if I click to open it again without refreshing the page, a white border reappears around the iframe.

I *think* I'm seeing .drag-contentarea with a white background, even though the CSS has it set to dark blue.

I also think this might have something to do with the uniqueID. I have multiple modal windows on the page and I initially had this problem if I clicked to open one window, then tried to open another. It was resolved by giving each link a uniqueID. But when I'm just clicking the same link for a second time, that won't really work...

link: http://upgradeyourlifestyle.org/homeshow/index.php?list=subcat&catID=25 (a work in progress, so sorry if other pieces look funny)

Any ideas?

EDIT: Aha, figured it out! There's a line in dhtmlwindow.js that says: t.contentarea.style.backgroundColor="white". I replaced "white" with my background color and now all is well. :) You may ignore this post.