Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7602151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:20:22+00:00 2026-05-30T23:20:22+00:00

does anyone know how I would do this within an HTML-5 web based application?

  • 0

does anyone know how I would do this within an HTML-5 web based application? ie I need to change the font colour of a name when a button is pressed. It’s for an application that easily shows when players are on or off court in a tennis tournament. so far I have an excel document of all the players loaded in to an html, this is one of the names for instance:

http://i.imgur.com/Iapdp.png

and buttons as follows:

http://i.imgur.com/kEGYm.png

so I assume I could write an if condition that states if that button is on, then the player’s name goes red or something.. I’m also struggling with layout, considering the names are in a table, the button just stays above the table wherever I put it. Any help is much appreciated, Louis.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T23:20:24+00:00Added an answer on May 30, 2026 at 11:20 pm

    You could simply add/remove a class instead of only changing the value.
    This class can be referenced via CSS.

    Example

    .online_text {
        color: #00ff00;
    }
    .offline_text {
        color: #ff0000;
    }
    

    Your script should add/remove the property so you basically get this format:

    <td ... class="online_text">Oliver Addison</td>
    

    Adding the class as example:

    document.getElementById("onoff").className += "online_text";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know what would be the minimum rights I would need to grant
Does anyone know how I would go about changing (transforming) an image based on
Does anyone know the display formatter that I would need to add to the
Does anyone know why a library initialized within dlopen() would initialize a static variable
Does anyone know of a library that would allow me to manipulate Flex DOM
Does anyone know of a whirlwind tour of Eclipse that would help a (former)
Does anyone know of a C# spell check library that would underline misspelled works
Does anyone know of a good alternative to cron? I would like something that
Does anyone know of an equivalent to FxCop/StyleCop for Delphi? I would really like
Does anyone here use Spec# regularly? I would like to know if it is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.