Be careful, use =3D=3D (double equal marks) instead of =3D (single
equal mark).
=3D=3D is for comparison while =3D is for assignment.
> -----Original Message-----
> From: macivora1@u... [mailto:macivora1@u...]
> Sent: vendredi 16 ao=FBt 2002 14:13
> To: javascript
> Subject: [javascript] Re: Can't get script to work poperly,
> Please Help
>
>
> two things really,
> as the other bloke says, you`re missing the {} in the if else
> statements.
> - check the syntax for this, it shoud be
>
> if( X=3Dy)
> {
> //do one thing
> }
> else
> {
> //do something else
> if(y=3D z)
> {
> //nested if
> }
>
> }
>
> the other thing is that you`ve got some very long statements, - try
to
> break them up into smaller statements and functions,
> otherwise you`ll just
> get confused when you try to debug.
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/th
eprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogram
me
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogram
me
r-20