خرید بک لینک
Below is the code Im using to insert a spliced image into a table. For some reason I have a small space between each row but not too worried about that, the full image is there. How ever I am getting like a title at the top with numbers 1234 and I know its something to do with the rowRef but unable to get rid of it. Any help is appreciated. Thank you

Code:

// JavaScript Document
        var noRows = 4;
        var noCols = 5;
        var rowRef = 1;
        function buildTable() {
                for (var y = 0; y < noRows; y++)
                {
                        document.writeln("<tr>");
                for (var x = 0; x < noCols; x++) {
                        document.writeln("<td>");
                        document.writeln("<img src=");
                        document.writeln("'../../images/pot002_r");
                        document.writeln(rowRef);
                        document.writeln("_c");
                        document.writeln(x + 1);
                        document.writeln(".jpg' /></td>");
                        }
                document.writeln("</tr>");
                document.writeln(rowRef ++);
                }
               
                return;
        }

---------------------------------------------------------------------

Code:

<td class="bgimage">
                <table border="0" cellpadding="0" cellspacing="0" width="100%" style="height: 0" class="borderC">
        <script type="text/javascript">
                buildTable();
        </script>
                </table>
                </td>
        </tr>

برچسب: نویسنده: آیلین رضوانی تاريخ: سه شنبه 12 دی 1396 ساعت: 13:37

صفحه بندی