Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi guys,
Can anyone help in devolping a javascriptcode for creating a table and inserting images inside it. it should consist of two rows. upper row should contain one image and the lower row should contain 2 small images. please help me. not allowed to use html. no borders and no spaces between the images.only with java script.
Posted
Updated 31-Oct-11 1:46am
v2
Comments
Mehdi Gholam 31-Oct-11 7:46am    
EDIT -> removed unnecessary formatting

1 solution

use this code to create a table :
http://www.webmasterworld.com/javascript/3614377.htm[^]
Do not forget to give an identification to your target TDs.


And use this one to insert your image into each individual cell :
http://stackoverflow.com/questions/4814875/set-text-in-table-cell-by-clicking-a-button-in-javascript[^]


Hope It Helps
 
Share this answer
 
Comments
Bala Selvanayagam 31-Oct-11 8:02am    
nice links 5ed
Amir Mahfoozi 31-Oct-11 9:09am    
thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900