on a site that's being developed, to increase the perceived speed of
searching through the database,
we've an image inside a span that we display before starting the search
with:
<div id="txtShowHide" style="display:;">
<center>
<img src="server_on_fire_md_wht.gif" name="pic1"><br>
<img src="wait.gif" name="pic2">
</center>
</div>
It's hidden after the search has completed by changing the style of the DIV:
<script language="javascript">
<!--
txtShowHide.style.display = "none";
-->
</script>
This will only work on Internet Explorer, not Mozilla though.
Tried it with spans instead - no difference.
I've a feeling I might need to specify a hidden style for the div or span,
and was wondering what's the cross-browser recommended way of doing this?
k.
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!