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

  • SEARCH
  • Home
  • 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 8880767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:13:19+00:00 2026-06-14T20:13:19+00:00

I am trying to populate images into a table. It’s like an image that

  • 0

I am trying to populate images into a table. It’s like an image that would be a question and the other would be an image that would be an answer and they would be compared in a table. I tried to search online but could not find anything substantial.

<html>
  <head>
    <title>Game Selection</title>
    <script type="text/javascript">
      function gameddselected() {
        var gamedd = document.getElementById('gamedd');
        var x =document.getElementById('scoretable').rows
        var a=x[0].cells
        var b=x[1].cells
        var c=x[2].cells
        if (gamedd.value=='1') {
          a[0].innerHTML="Game1 Score Table"
        } else if (gamedd.value=='2') {
          a[0].innerHTML="Game2 Score Table"
        } else if (gamedd.value=='3') {
          a[0].innerHTML="Game3 Score Table"
        } else if (gamedd.value=='4') {
          a[0].innerHTML="Game4 Score Table"
        }
      }
    </script>
  </head>
  <body background="http://1.bp.blogspot.com/_68sk2PaFt3Q/Sl8n81IoRcI/AAAAAAAAEUw/AlnMPEC9uc0/s1600/Disable+File+Indexing+In+Windows++Speed+Up+Windows+By+Disabling+Search+Index+2.jpg" width="80%" height="80%">
    <h2 style="text-align: center;">
      <span style="font-size:18px;">
        <span style="font-family: arial, helvetica, sans-serif;">Please select a Game&nbsp;
        </span>
      </span>
    </h2>
    <form action="" method="POST" name="form2">
      <div align="center">Select:
        <select name="gamedd" id="gamedd" style="width:200px" onChange="gameddselected()">
          <option value="1">Game1</option><option value="2">Game2</option>
          <option value="3">Game3</option><option value="4">Game4</option>
        </select>
      </div>
    </form>
    <TABLE BORDER="5" WIDTH="50%" CELLPADDING="4" CELLSPACING="3" ALIGN="CENTER" id="scoretable">
      <TR>
        <TH COLSPAN="3"><BR><H3>TABLE TITLE</H3></TH>
      </TR>
      <TR>
        <TH>Question Images</TH>
        <TH>Answer Images</TH>
        <TH>Score</TH>
      </TR>
      <TR ALIGN="CENTER">
        <TD>Data 1</TD>
        <TD>Data 2</TD>
        <TD>Data 2</TD>
      </TR>
    </TABLE>
  </body>
</html>

I want an image to be produced in place of Data1 in the table. How can that be done?

Any help would be appreciated 🙂

  • 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-06-14T20:13:20+00:00Added an answer on June 14, 2026 at 8:13 pm

    HTML

      <TR ALIGN="CENTER">
        <TD id="Data1">Data 1</TD>
        <TD id="Data2">Data 2</TD>
        <TD id="Data3">Data 3</TD>
      </TR>
    

    Code

    for(i=1;i<4;i++) {
      x=document.getElementById("Data"+i);
      x.innerHTML="<img src='/path/to/image"+i+".jpg' />";
    // Assuming your images are named [something]NUMBER.jpg
    // You could instead use an array
    }
    

    RESULT

    <div>​
      <td id=​"Data1">​<img src=​"/​path/​to/​image1.jpg">​</td>​
      <td id=​"Data2">​<img src=​"/​path/​to/​image2.jpg">​</td>​
      <td id=​"Data3">​<img src=​"/​path/​to/​image3.jpg">​</td>​
    </div>​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I trying to set multiple images from SQL into Table View Cells using SDWebImage.
I'm trying to populate images from a directory into a listview with a small
I am trying to populate a WebGrid cell with an image that will open
I'm trying generate a images/chart in my controller and have that image displayed in
I am trying to populate a list called images with files that have the
I am trying to populate a List<Image> by reading the name of the each
I am trying populate H3 with the sum of column E for rows that
I am trying to populate a dropdown list when some other drop down gets
I'm trying to populate a dictionary dynamically in a for loop like so: pseudo-code
I'm trying to populate my menu items with an image/logo on each of the

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.