Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP!!!! LOL

Status
Not open for further replies.

LebronJames

Programmer
Apr 5, 2003
93
Here is my code:

document.write(' <table border="1" width="100%">');
document.write(' <tr>');
document.write(' <td width="50%">Bureau of Child</td>');
document.write(' <td width="50%">Development</td>"');
document.write(' <tr> ');
document.write(' </table>');

How Do I add this line to 4th line of my code?

Add THIS:

document.write("<IMG SRC='"+pics[thenum]+"' border='0' width='"+pic_width+"' height='"+pic_height+"' name='img1'>\n");


TO THIS:
document.write(' <td width="50%">Development</td>"');
 

If you want to add it, simply insert the line after line 4. If what you really want (but haven't asked for) is to insert the image INSIDE the TD, then simply cut the IMG code and put it in inside the TD code:

Code:
document.write('<td width="50%">Development<img src="'+pics[thenum]+'" border="0" width="'+pic_width+'" height="'+pic_height+'" name="img1"></td>');

A lot of your quotes seem to have been mixed up, too, which I've corrected form you.

Hope this helps,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top