|
Peter, Stick something like this in your <head>: <style media="screen" type="text/css"> #layer1 { position: absolute; z-index: 1; top: 100px; left: 0px; visibility: visible; } #layer2 { position: absolute; z-index: 2; top: 10px; left: 10px; } </style> <script> function downLoad(){ if (document.all){ document.all["layer1"].style.visibility="hidden"; document.all["layer2"].style.visibility="visible"; } else if (document.layers){ document.layers.layer1.visibility="hidden"; document.layers.layer2.visibility="visible"; } else if (document.getElementById){ document.getElementById("layer1").style.visibility="hidden"; document.getElementById("layer2").style.visibility="visible"; } } </script> Then make your <body> look something like this: <body onload="downLoad()"> <div id="layer1"> Message I want while Net.Data SQL is fetching records </div> <div id="layer2"> Output from SQL </div> </body> The downLoad() javascript function should fire after the page is finished loading, which hides the layer1 div and shows the layer2 div. It works well in IE 6, not so well in Mozilla (if someone wants to play around with this). Does Mozilla fire the onload event as soon as the page starts to load? Maybe a way around this would be to call downLoad() at the bottom of the page instead of in the onload event? Mike E. "Peter Vidal" <Peter_Vidal@xxxx To: web400@xxxxxxxxxxxx .com> cc: Sent by: Subject: [WEB400] Message while SQL is pulling records... web400-bounces@xx drange.com 07/17/2003 04:55 PM Please respond to Web Enabling the AS400 / iSeries Hi list: How you handle this situation? I want to display an image, or a text message, or both (I do not know yet) while the SQL command retrieves all the records of a file. Is this possible? Peter Vidal Pall Aeropower Corp. SR Programmer Analyst WWW.Pall.com / 727-539-8448, x2414 "A good player makes himself look good; a great player makes the team look good." Author unknown _______________________________________________ This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/web400 or email: WEB400-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.