colorspots
06-16-2004, 10:48 PM
<td height="400" colspan=2 background=" Change This Image ">
<table width="688" height="400" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="300" colspan="6" align="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"> Text based on image Goes here </td>
</tr>
</table>
</td>
</tr>
I have in the past used to change my images using this script.
<SCRIPT LANGUAGE="Javascript">
function image() {
};
image = new image();
number = 0;
// imageArray
image[number++] = "<td height='400' colspan=2 background='1.jpg' border='0' height='249' width='491'>"
image[number++] = "<td height='400' colspan=2 background='2.jpg' border='0' height='249' width='491'>"
image[number++] = "<td height='400' colspan=2 background='3.jpg' border='0' height='249' width='491'>"
increment = Math.floor(Math.random() * number);
document.write(image[increment]);
</sript>
I am trying to figure out how to change text with the images. However the text isn't right next to the image but in a table cell.
I tried if else statements and failed. Any Suggestions on how to accomplish this.
<table width="688" height="400" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="300" colspan="6" align="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"> Text based on image Goes here </td>
</tr>
</table>
</td>
</tr>
I have in the past used to change my images using this script.
<SCRIPT LANGUAGE="Javascript">
function image() {
};
image = new image();
number = 0;
// imageArray
image[number++] = "<td height='400' colspan=2 background='1.jpg' border='0' height='249' width='491'>"
image[number++] = "<td height='400' colspan=2 background='2.jpg' border='0' height='249' width='491'>"
image[number++] = "<td height='400' colspan=2 background='3.jpg' border='0' height='249' width='491'>"
increment = Math.floor(Math.random() * number);
document.write(image[increment]);
</sript>
I am trying to figure out how to change text with the images. However the text isn't right next to the image but in a table cell.
I tried if else statements and failed. Any Suggestions on how to accomplish this.