1.where should i put the cards?
Code:
cards[0]="photo1.jpg"
cards[1]="photo2.jpg"
cards[2]="photo3.jpg"
cards[3]="photo4.jpg"
cards[4]="photo5.jpg"
cards[5]="photo6.jpg"
cards[6]="photo8.jpg"
cards[7]="photo9.jpg"
2.if there is a need to put the http://www.... of the cards ?
2.where shuold i put the source/root/directory of the cards in this code?
Code:
cards[0]="http://www.somedomain.com/cardimages/photo1.jpg"
3.i was wrong with the position of the card , and i need them to be in horizonal view.
Change:
Code:
document.getElementById('layout').rows[i_tem].cells[0].innerHTML='<img src="'+cards[i_tem]+'">';
to:
Code:
document.getElementById('layout').rows[0].cells[i_tem].innerHTML='<img src="'+cards[i_tem]+'">';
And change:
HTML Code:
<table id="layout">
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
</table>
to:
HTML Code:
<table id="layout">
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</table>
Bookmarks