Results 1 to 2 of 2

Thread: Show border for button with mouse over

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2000
    Posts
    1,463

    Question Show border for button with mouse over

    Below I have code that changes the color of the button with the onmouseover. How do I also include the border width with this?

    Thanks!

    Code:
            btnHome.Attributes.Add("onmouseover", "this.style.backgroundColor='#C6C6C6'")
            btnhome.Attributes.Add("onmouseout", "this.style.backgroundColor='#EFEFEF'")

  2. #2
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    India
    Posts
    310

    Re: Show border for button with mouse over

    try this

    btnHome.Attributes["onmouseover"] = "this.style.backgroundColor='#C6C6C6';";
    btnHome.Attributes["onmouseout"] = "this.style.backgroundColor='#EFEFEF';";
    Sagar
    VB6, VB.net,C#,ASP, ASP.net MSSQL, MYSQL

Posting Permissions

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



Click Here to Expand Forum to Full Width