View Single Post
Old 11-30-2012, 08:22 PM   PM User | #2
Kayla12
New to the CF scene

 
Join Date: Nov 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Kayla12 is an unknown quantity at this point
I am putting the variables in the code shown below, if I enter a [0] or [1] the correct image shows up, but I need it to coincide with the the random variable instead of 0 and 1.

Code:
 <form NAME="form">
      <table height="165">
        <tr>
          <td height="137"><table width="814">
            <tr>
              <td><script>document.write('<img alt="random image" src="' + playerC[a] + '"/>');</script>
                <script>document.write('<img alt="random image" src="' + playerC[b] + '"/>');</script></td>
              <td><script>document.write('<img alt="random image" src="' + playerC[c] + '"/>');</script>
                <script>document.write('<img alt="random image" src="' + playerC[d] + '"/>');</script></td>
            </tr>
Kayla12 is offline   Reply With Quote