[Webdev] hiding images in divs
Ken Guest
ken at tuatha.org
Wed Jan 29 09:16:57 GMT 2003
Fergal J Byrne wrote:
> At 17:17 28/01/2003 +0000, you wrote:
>
>> 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:
>
>
> function hideContent(id) {
> var obj = document.getElementById(id);
> if (obj) {
> if (obj.style) {
> whichEl = obj.style
> } else {
> whichEl = obj
> };
> whichEl.display = 'none';
> }
> }
>
> Hide it by calling hideContent('txtShowHide')
that works brilliantly Fergal.
thanks
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
________________________________________________________________________
More information about the Webdev
mailing list