SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2002
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    JavaScript <script> to <input> refferal

    Trying to change color of form element:

    in .js file:

    function makeInvis(invform) {
    invform.style="text-color: #ffffff"
    }

    in .html file:

    onClick="makeInvis(invform)" name="dollar1"

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    text-color: isn't a valid CSS property. Use just color: instead. Other valid CSS color properties:

    background-color:
    border-color:

    Also, your object references may be incorrect, but I cannot tell w/o seeing more of the HTML.

    UMP = Useless Message Poster?
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2002
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://www.hecklerkoch-usa.com/pages/military/ump.html

    Anyway, how much more of the HTML do you need to see?

  4. #4
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, I'd need to see the page with the makeInvis() function on it, which the above link does not.

    P.S. I meant nothing by the Useless Message Poster thing, I know a guy that uses that acronym/nickname and was just curious.
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  5. #5
    SitePoint Enthusiast
    Join Date
    Jun 2002
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's an Invoice writer type of thing. I just need it to delete the textbox that the command was launched by.


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
  •