Hi...i'm pretty new here, and i got lost in this topic..
i need some help.. want to add vspace and hspace... hmm...
here is original image.mdu that works fine
i want to put vspace and hspace in this code.. actually i tried, bud does not work...
this is what i did..
i put:
hSpace = document.forms['properties'].hSpace.value;
vSpace = document.forms['properties'].vSpace.value;
after this:
imageBorder = document.forms['properties'].imageBorder.value;
then i added extra code to "finalImage":
finalImage = \" <img border=\\\"\"+ imageBorder +\"\\\" align=\\\"\"+ imageAlign +\"\\\" alt=\\\"\"+ alternativeText +\"\\\" src=\\\"$config_http_script_dir/data/upimages/\"+ selectedImage +\"\\\" hspace=\\\"\"+ hSpace +\"\\\" vspace=\\\"\"+ vSpace +\"\\\" >\";";
and in form "Properties" added this
<td>hspace</td>
<td><input type=text value='15' name=hSpace style=\"width:35\"> pixels</td>
</tr>
<tr>
<td>vspace</td>
<td><input type=text value='5' name=vSpace style=\"width:35\"> pixels</td>
</tr>
u guess, it does not work... there's no difference when i insert (no vspace and hspace) missing something? what did i do wrong?
if somebody can help me or put in right direction....
thanks..