SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Wizard silver trophy someonewhois's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    6,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Changing borders?

    Hello,

    I have a dashed border, and want it to change to solid on mouse over. I tried this:

    onmouseover="this.style.border='1px solid #FF0000;'"

    I got a funny JavaScript error (Invalid Argument, line 84, character 1)

    That line is:
    <table width="80%" border="0" cellspacing="0" cellpadding="5" class="feedback" onmouseover="this.style.border='1px solid #FF0000;'">

    Any feedback would be greatly appreciated.

    Regards,
    Someonewhois

  2. #2
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The semicolon:

    onmouseover="this.style.border='1px solid #FF0000;'"

    ...is CSS, not DOM; actual scripted values don't include it. That error - funny or not - is a clue that you've passed an unacceptable value in there.
    ::: certified wild guess :::

  3. #3
    SitePoint Wizard silver trophy someonewhois's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    6,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, thanks for the response, I was not aware of that.

    Regards,
    Someonewhois


Bookmarks

Posting Permissions

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