I have the following script in my head section:
1| <script type="text/javascript">
2| var inAccount = 0;
3| if (inAccount = 0){
4| document.getElementById("L-out").style.display = 'block';
5| document.getElementById("User").style.display = 'block';
6| }else{
7| document.getElementById("User").style.display = 'none';
8| document.getElementById("L-out").style.display = 'none';
9| }
10| </script>
And the following code in my body section:
<div id="log">
<a href="#" class="in" id="Sign-up">Sign up</a>
<a href="#" class="in" id="L-in">Login</a>
<a href="#" class="in" id="User">Account</a>
<a href="#" class="in" id="L-out">Logout</a>
</div>
When I load the page I get this error message: 'null' is not an object. Referring to line 7.
Does any one know what might be happening?