Welcome to TalkGraphics.com
Results 1 to 10 of 56

Hybrid View

  1. #1
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,789

    Default Re: JS Hamburger Menu (Acorn)

    Quote Originally Posted by letsgofishing View Post
    I like the concept ! How would I change the code so that all you saw were the tabs when the site first opens, as opposed to having the "content" of the yellow tab show as at present?

    LGF
    You're only seeing the yellow because it's the top layer. Make it transparent and you see the green underneath. In other words, all the layers begin as visible and don't disappear (hide) until you click one of the javascript links.

  2. #2
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,903

    Info Re: JS Hamburger Menu (Acorn)

    Just add:
    Code:
    <script>
      $('.yellow, .red, .green, .blue').hide();
    </script>
    to Website Body (code).

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  3. #3
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,789

    Default Re: JS Hamburger Menu (Acorn)

    Quote Originally Posted by Acorn View Post
    Just add:
    Code:
    <script>
      $('.yellow, .red, .green, .blue').hide();
    </script>
    to Website Body (code).

    Acorn
    Ooh, I feel pretty pleased with myself. I was wandering down the same path, but couldn't put the ,.>$)( in their correct pigeon holes. What does the $ mean/do?

  4. #4
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,903

    Default Re: JS Hamburger Menu (Acorn)

    Quote Originally Posted by Chris M View Post
    Ooh, I feel pretty pleased with myself. I was wandering down the same path, but couldn't put the ,.>$)( in their correct pigeon holes. What does the $ mean/do?
    The $ is an alias for jQuery.
    $('.yellow, .red, .green, .blue').hide(); is the dialog for find everything that has a ClassName of yellow, red, green or blue and then hide them.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  5. #5
    Join Date
    Oct 2010
    Location
    South Africa
    Posts
    877

    Default Re: JS Hamburger Menu (Acorn)

    Quote Originally Posted by Acorn View Post
    Just add:
    Code:
    <script>
      $('.yellow, .red, .green, .blue').hide();
    </script>
    to Website Body (code).

    Acorn
    Many thanks again Acorn - really enjoying learning about what JS can do.

  6. #6
    Join Date
    Oct 2010
    Location
    South Africa
    Posts
    877

    Default Re: JS Hamburger Menu (Acorn)

    Quote Originally Posted by Chris M View Post
    You're only seeing the yellow because it's the top layer. Make it transparent and you see the green underneath. In other words, all the layers begin as visible and don't disappear (hide) until you click one of the javascript links.
    OK - I understand. SO there is no way to make just the coloured tabs visible initially?

 

 

Tags for this Thread

Bookmarks

Posting Permissions

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