Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Sep 2011
    Posts
    274
    Thanks
    38
    Thanked 0 Times in 0 Posts

    Have I stuffed up with this code?

    I'm really new to JavaScript and trying to use this code that I partially wrote myself, I've added two 'instructions' in it, but perhaps I have separated them wrong. I don't know, I'm really new to JavaScript.

    Have I stuffed up?
    Code:
    onclick="document.getElementById('glance').style.display='block';document.getElementById('front').style.display='hide'"

  • #2
    Regular Coder
    Join Date
    Sep 2011
    Posts
    274
    Thanks
    38
    Thanked 0 Times in 0 Posts
    Solved by ignace from phpfreaks.com.

    The problem was 'hide' should have been 'none'.

    This issue is solved.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •