if (slideOpen = 1){. Here you are assigning 1 to variable slideOpen , so the condition will always evaluate to true. use == instead of = for both conditions.
確定! 回上一頁