|
-
May 2nd, 2004, 07:31 PM
#1
Thread Starter
Fanatic Member
add a table to document.write
This displays the image under my text...
Ex:
News Flash
Img
I want to put this img to appear after my text. Text will appear in cell1 and right next to into a split cell will display the img..
Ex:
News Flash Img
how can I modify this line to do this:
document.write("<IMG SRC='"+pics[thenum]+"' border='0' width='"+pic_width+"' height='"+pic_height+"' name='img1'>\n");
-
May 2nd, 2004, 08:19 PM
#2
Thread Starter
Fanatic Member
I modified 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>"');
-
May 3rd, 2004, 05:25 AM
#3
Frenzied Member
Code:
document.write(' <td width="50%">Development<IMG SRC='"+pics[thenum]+"' border='0' width='"+pic_width+"' height='"+pic_height+"' name='img1'></td>"');
does that not work?
edit: maybe it should be this:
Code:
document.write(' <td width="50%">Development<IMG SRC="'+pics[thenum]+'" border="0" width="'+pic_width+'" height="'+pic_height+'" name="img1"></td>');
Have I helped you? Please Rate my posts. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|