Make hover stay?

  • MrMatt

    #2931

    Hi again Guys,

    Wondering if someone could help me find a way to make ‘the hover’ to stay after you have clicked at it.

    Take a look: http://grafengruppen.se

    Regards,

    Grafengruppen

    Prasanna SP

    #22700

    Enter the same values for onMouseover and onMouseout

    GrafenGruppen

    #22701

    How do you mean? I have this CSS-code:

    /* Icon nav bar */

    #menu-item-900 {

    text-indent: -999999px;

    width: 80px;

    }

    #menu-item-900 a:link {

    background: url(images/vitutantextlogo.png) center no-repeat !important;

    }

    #menu-item-900 a:hover {

    background: url(images/svartutantextlogo.png) center no-repeat !important;

    }

    Prasanna SP

    #22702

    Read this – http://www.w3schools.com/jsref/event_onmouseout.asp

    and

    Try it yourself – http://www.w3schools.com/js/tryit.asp?filename=tryjs_animation

    In the above example, replace onmouseout="mouseOut() with onmouseout="mouseOver()

    You need to write some extra code to implement this in the Graphene theme

    GrafenGruppen

    #22703

    I can’t figure it out how to implement it in the theme. Any suggestion?

    GrafenGruppen

    #22704

    Anyone?

    GrafenGruppen

    #22705

    ?

    GrafenGruppen

    #22706

    Still no answer, got to kill myself 🙁

    Mod

    Kenneth John Odle

    #22707

    I’m not quite sure what you mean when you say you want to make the hover stay? Could you possibly clarify or provide an example?

    GrafenGruppen

    #22708

    This is actually my biggest problem. It’s very difficult to explain.

    I can start like this.

    1. Look at my webpage http://grafengruppen.se (easiest way if I refer do the actual problem)

    2. I want to make the button with the logo on being like the other buttons (a silver background) with black logo on (when you are on that page)

    3. When you aren’t on that page it shall just be white logo, with black background.

    I’ve used the code:

    http://pastebin.com/uJin5KCZ

Viewing 10 posts - 1 through 10 (of 17 total)

You must be logged in to reply to this topic.