Make hover stay?
-
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
Enter the same values for
onMouseover
andonMouseout
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;
}
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()
withonmouseout="mouseOver()
You need to write some extra code to implement this in the Graphene theme
I can’t figure it out how to implement it in the theme. Any suggestion?
Anyone?
?
Still no answer, got to kill myself 🙁
Mod
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?
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:
Viewing 10 posts - 1 through 10 (of 17 total)
- 1
- 2
- You must be logged in to reply to this topic.