not working: onmouseover="this.style.font-weight='bold';"

Discussion in 'ASP .Net' started by Steve Richter, Jul 16, 2007.

  1. Why would this embedded javascript not work?
    <span onmouseover="this.style.font-weight='bold';" >line 3</span>

    this does:
    <span onmouseover="this.style.color='blue';" >line 1</span>

    thanks,
     
    Steve Richter, Jul 16, 2007
    #1
    1. Advertising

  2. Steve Richter

    nahid Guest

    On Jul 16, 9:19 am, Steve Richter <> wrote:
    > Why would this embedded javascript not work?
    > <span onmouseover="this.style.font-weight='bold';" >line 3</span>
    >
    > this does:
    > <span onmouseover="this.style.color='blue';" >line 1</span>
    >
    > thanks,


    hi,
    try this way
    <span onmouseover="this.style.fontWeight='bold';" >line 3</span>

    nahid
    http://nahidulkibria.blogspot.com/
    http://www.kaz.com.bd
     
    nahid, Jul 16, 2007
    #2
    1. Advertising

  3. On Jul 16, 12:49 am, nahid <> wrote:
    > On Jul 16, 9:19 am, Steve Richter <> wrote:
    >
    > > Why would this embedded javascript not work?
    > > <span onmouseover="this.style.font-weight='bold';" >line 3</span>

    >
    > > this does:
    > > <span onmouseover="this.style.color='blue';" >line 1</span>

    >
    > > thanks,

    >
    > hi,
    > try this way
    > <span onmouseover="this.style.fontWeight='bold';" >line 3</span>
    >
    > nahidhttp://nahidulkibria.blogspot.com/http://www.kaz.com.bd


    thank you

    http://www.w3schools.com/css/pr_font_weight.asp

    -Steve
     
    Steve Richter, Jul 16, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jordan
    Replies:
    1
    Views:
    3,845
    Bruce Barker
    Jun 10, 2005
  2. Eqbal Z
    Replies:
    6
    Views:
    204
    Eqbal Z
    Aug 27, 2003
  3. yawnmoth
    Replies:
    4
    Views:
    239
    yawnmoth
    Dec 8, 2004
  4. Epetruk

    onMouseOver/onMouseOut not working

    Epetruk, Feb 13, 2005, in forum: Javascript
    Replies:
    12
    Views:
    398
  5. Steve Macleod
    Replies:
    2
    Views:
    164
    Steve Macleod
    May 20, 2006
Loading...

Share This Page