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 7 of 7
  1. #1
    Banned
    Join Date
    Mar 2007
    Posts
    1,523
    Thanks
    116
    Thanked 0 Times in 0 Posts

    Question Show and hide arrows in header fader?

    Hi,

    I was wondering how to go about hiding my left and right arrows on my header image until mouse hover over then show?
    Please help?

    thanks

    http://www.jbiddulph.com/mrh/home.html

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,908
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    The > and < arrows do not seem to do anything in IE9.
    But it does not seem a good idea to hide anything to do with navigation until the user (fortuitously) mouses over it.

    If you insist you can use CSS.

    Quizmaster: What car company was originally known as Beyerishe Motoren Werke?
    Contestant: Audi.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    Banned
    Join Date
    Mar 2007
    Posts
    1,523
    Thanks
    116
    Thanked 0 Times in 0 Posts
    Anyone know of any ways to do this?

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,908
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    As I say, post this request in the CSS forum.

    It is simple using the CSS hover selector. IE7+ supports the :hover pseudo-class on arbitrary Elements as do FF, GC and Opera.

    But I still question whether it is a good idea.
    Last edited by Philip M; 02-10-2013 at 05:19 PM.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #5
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,623
    Thanks
    6
    Thanked 1,001 Times in 974 Posts
    Quote Originally Posted by Philip M View Post
    But I still question whether it is a good idea.
    Well, I think it’s not that crucial that it would hurt too much. Also, the visitor is most likely crossing the area with their mouse anyway so they will notice. It is only not obvious if you are on a touch-enabled device.

    But anyway, would this work?
    Code:
    #banneroverlay > a {display: none;}
    #banneroverlay:hover > a {display: block;}

  • #6
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,908
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    You can't hover over an element which does not exist (not displayed).
    You could do something like this:-

    Code:
    <!DOCTYPE html>
    <head>
    
    <style type = "text/css">
    .mydiv  {display: none;}
    a:hover + .mydiv {display: block;}
    </style>
    
    </head>
    <body>
    
    <a>Hover over me!</a>
    <div class = "mydiv">Stuff shown on hover</div>
    
    </body>
    
    </html>
    You could do instead of some text
    <a>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp></a>
    Last edited by Philip M; 02-10-2013 at 05:43 PM.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #7
    Banned
    Join Date
    Mar 2007
    Posts
    1,523
    Thanks
    116
    Thanked 0 Times in 0 Posts

    Thumbs up

    thank you very much!

    I tried what VIP Stephen suggested and it worked!


  •  

    Posting Permissions

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