PDA

View Full Version : Inserting Preloader in DHTML Modal Window



nreb10
05-14-2008, 03:13 AM
1) Script Title:
DHTML Modal Window Widget

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

3) Describe problem:
How and where can i insert an image preloader (loading.gif) in DHTML Modal Window Widget ? I've used a hidden DIV on the page. Below is the sample code of the hidden div. I have 98 hidden divs which takes a long time to load. Instead of declaring it upon loading, I try to make a function that will make the a particular hidden div if it is needed.

Sample:

<!-- incorrect pop up placeholder-->
<div id="incorrect" style="display:none;">
<div style="position:relative; height:367px; width:592px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='incorrect_popup.png',sizingMethod='scale');">
<img src="incorrect_popup.gif" style="background-color:transparent; visibility:hidden" />
</div>
</div>