Possible to make LoginStatus text become underlined when mouse hovers?

Last post 01-19-2008 4:17 AM by Sunflash. 4 replies.

Sort Posts:

  • Possible to make LoginStatus text become underlined when mouse hovers?

    01-19-2008, 12:54 AM
    • Member
      1 point Member
    • Sunflash
    • Member since 01-19-2008, 12:47 AM
    • Posts 9

    Hey everyone,

    I have a LoginStatus control, but unlike any of my hyperlinks, when the user hovers over the control it (LoginStatus text) doesn't become underlined. Is there anyway to make this happen?

     Thanks,

    -Sunflash

  • Re: Possible to make LoginStatus text become underlined when mouse hovers?

    01-19-2008, 1:24 AM
    • Member
      314 point Member
    • cdpandya1
    • Member since 05-17-2007, 9:59 AM
    • Ahmedabad
    • Posts 62

     write CSS for two events onmouseover and onmouseout

    Chintan
    Please remember to 'Mark as Answer' if this post answered your question!
  • Re: Possible to make LoginStatus text become underlined when mouse hovers?

    01-19-2008, 1:44 AM
    • Member
      1 point Member
    • Sunflash
    • Member since 01-19-2008, 12:47 AM
    • Posts 9

    Please excuse my noobness, but I'm not really into CSS, although I used to be like, when I was 10. When you suggest writing events for onmouseover and onmouseout, how would I then make the control react to the CSS? You don't mean write actual new events for the control, such as "Init," "Logging Out," and "Logged Out?" do you?

     I already have a CSS file that underlines my hyperlinks when the cursor hovers over it. But obviously since the LoginStatus is a control, it's not going to have the same effect.

  • Re: Possible to make LoginStatus text become underlined when mouse hovers?

    01-19-2008, 2:30 AM
    Answer
    • Member
      493 point Member
    • jagsIN
    • Member since 12-28-2007, 11:49 AM
    • Pune
    • Posts 75
    hi
      I dont know which control you are using to show text(Htmlcontrol  ) in login control. Whatever it is.... Check out for one of properties CLASS or cssClass. Set it with one stylesheet class with name sample or whatever u want. and write that named class in css file
    like .
       sample{
       color:black;
       bla
          bla
             bla
       }
       now write another class in that same stylesheet file.
       .sample:hover
        {
    text-decoration:underlined;
        }

     Now run i think you will get result what you want.

     Regards,
    Jags

     

  • Re: Possible to make LoginStatus text become underlined when mouse hovers?

    01-19-2008, 4:17 AM
    • Member
      1 point Member
    • Sunflash
    • Member since 01-19-2008, 12:47 AM
    • Posts 9

    Thank you very much!! I got it working:-)

    Thanks for the source code examples Jags!

Page 1 of 1 (5 items)