You are here: Re: Setting several styles within one javascript function « HTML « IT news, forums, messages
Re: Setting several styles within one javascript function

Posted by Spartanicus on 09/29/05 19:31

Michael Winter <m.winter@blueyonder.co.uk> wrote:

>>> function panel() {
>>> document.getElementById('panel').style.display='hidden';
>
>The value, hidden, doesn't apply to the display property

Oops, the result of simplifying the code for the post, I inserted the
wrong code.

A minimized test case that closely resembles what I'm actually trying to
do is: http://homepage.ntlworld.com/spartanicus/temp.htm

This "works" if I comment out the second statements, if I leave them in
it fails and produces runtime errors.

>A well-written script will be robust, and test its environment before
>using any features.

I'm not skilled enough to understand feature detection, or to write
elegant javascript code. All my javascript is used for optional fluff
only, no harm done if it doesn't work.

--
Spartanicus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация