Is this menu possible to make?

Discussion in 'Graphics & Multimedia' started by xkatx21x, Jul 24, 2008.

  1. #1
    Hi I'm trying to make a navigation menu, which looks like a stack of bricks. But when you hover over the brick slides out and stays out when clicked. I've added a quick sketch to give you an idea what I'm talking about.

    I am presuming I would need to use flash??

    Is this possible?? If so could you please point me to a tutorial that would help as so far I can only find simple slide out menu tutorials.
     

    Attached Files:

    xkatx21x, Jul 24, 2008 IP
  2. Host Website

    Host Website Well-Known Member

    Messages:
    504
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    130
    #2
    I would say its possible, but i don't know flash. So i would not have a clue sorry.
     
    Host Website, Jul 24, 2008 IP
  3. glorie

    glorie Peon

    Messages:
    123
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I would think this is possible without the use of flash. Probably just images, css, xhtml and jquery.
     
    glorie, Jul 24, 2008 IP
  4. xkatx21x

    xkatx21x Peon

    Messages:
    93
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    ok I've kinda got it to work using HTML & CSS see Here but is there a way to make them go behind each other?? I tried using z-index but it made no difference.??
     
    xkatx21x, Jul 24, 2008 IP
  5. glorie

    glorie Peon

    Messages:
    123
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Assign a class to each li then apply position relative.
    
    <ul id="navlist">
      <li id="active" class="brick1"><a href="#" id="current"></a></li> 
      <li class="brick2"><a href="#"></a></li>
    </ul>
    
    Code (markup):
    then css:
    
    #navlist li{
     position:relative;}
    
    li.brick1{
     z-index:5;}
    
    li.brick2{
     z-index:4;}
    
    
    Code (markup):
     
    glorie, Jul 24, 2008 IP
  6. Xavier_3D

    Xavier_3D Well-Known Member

    Messages:
    1,299
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    140
    #6
    Its a pretty simple Flash thing, but I doubt that the one you showed was made in flash, seems more like a javascript.
     
    Xavier_3D, Jul 24, 2008 IP
  7. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #7
    If you know your way around CSS, Javascript is not necessary (maybe to get the text isometric-like though).

    You could just use a background image for all the bricks with the text on top and increase the margins using CSS :hover.

    I threw together a quick example without images. Valid xHTML Strict, works with JS, Frames and images disabled, on Opera, Firefox, IE (5.5+), Safari and Konqueror (Windows, Mac and Linux ;))

    http://dredgy.com/examples/menu

    The links' left margin is increased by 1em when it is hovered over, and you can make an "active" menu item by putting this into your link:

    "class="active""

    So an unactive link would look like this:

    
    <li><a href="http://google.com">Google</a></li>
    
    Code (markup):
    And an active link would be:

    
    <li><a class="active" href="http://google.com">Google</a></li>
    
    Code (markup):
    This is just a base guideline for you to work off, but if you are somewhat familiar with CSS, this should be easy enough.

    Both Flash and JS are relatively inaccessible for older browsers, so steer away from Flash altogether. For a Javascript one, it would be wise to have mine either styled with Javascript (sorting through all the list items in the navigation menu, and changing them to bricks) or have a custom javascript one, and one such as mine within a <noscript> tag.
     
    blueparukia, Jul 25, 2008 IP
    Xavier_3D likes this.
  8. B4nks

    B4nks Peon

    Messages:
    42
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yea, I wish you could go into a little more detail with that Blue.

    I need something to allow me to specify an image that will be replaced when the user hovers his/her cursor over one of several text links. I’m looking for a solution that allows me to specify a different image to show dependent on what text link is hovered.

    Text here is really preferred to help with the SEO obviously. If anyone has a reference to find this example laid out somewhere I'd appreciate it.
     
    B4nks, Jul 25, 2008 IP
  9. xkatx21x

    xkatx21x Peon

    Messages:
    93
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Thanks this works a treat :D
     
    xkatx21x, Jul 25, 2008 IP