Whooooooooooow very nice indeed….

By patrickwellink
June 11, 2004

I was looking for a ‘Microsoft look alike‘ roll over button.

Go to www.microsoft.com hover a little around in the menu on the left and see what I mean. I Asked a very experienced C# programmer (the kind that makes fun of us VB programmers) for help.

Wel he couldn’t help me either so Hit the RETINKIFY button on the VB.NET context menu and found someting very nice.

In the Styles you can add the hover property like this :


border-right: whitesmoke 1px solid;
border-top: whitesmoke 1px solid;
font-weight: normal;
font-size: x-small;
text-transform: none;
border-left: whitesmoke 1px solid;
color: dimgray;
border-bottom: whitesmoke 1px solid;
font-family: Tahoma;
background-color: whitesmoke;
text-align: center;
text-decoration: none;

border-right: black 1px solid;
border-top: black 1px solid;
font-weight: normal;
font-size: x-small;
vertical-align: baseline;
text-transform: none;
border-left: black 1px solid;
cursor: hand;
color: black;
border-bottom: black 1px solid;
font-family: Tahoma;
background-color: darkgray;
text-align: center;
text-decoration: none;

When you are not hovering .menu is used and when you hoover .menuHover is used. What I don’t know is if there are more : tricks like :CLICK or whatever…. Anoybody of the Wasabi Guru’s know the answer ????

I am sure you all knew this but I see a lot of control.properties.add(“onmouseover“,“bla bla java stuff to change backround color“) that’s not needed………


Comments: 1

  1. Patrick Wellink says:

    Yes I know now that CSS is powerfull, But Dennis, I Asked you the same……

    But i thought you had to add the onmouse stuff. An dthat is why i wanted to put it in a usercontrol.

    But the properties.add is not needed if you do it the right way.

    And Ernst, I really don’t know why we are called "Web Developement" unit.

    Maybe because we browse the web a lot about devolpement ?

Comments are closed.

  • Recent Posts
  • Recent Comments
  • Archives
  • Categories
  • Meta