Because there's a lot of repetitive stuff with only slight differences, on the web site I use PHP functions to create the repeated HTML and function parameters to define the small differences. It all works fine.
On the CD, which needs to be capable of running on as many PCs and Macs as possible, I can't use PHP to generate the repetitive HTML. Can Javascript be so used? Any examples to, for example, create code along these lines?
| Text | |
1 23 45 67 89 1011 1213 1415 1617 1819 2021 2223 2425 2627 | <tr> <td class="sermon bold" width="8%">Date</td> <td width="3%"> </td> <td class="sermon bold" width="43%">Morning Service</td> <td width="3%"> </td> <td class="sermon bold" width="42%">Evening Service</td> <td width="1%"> </td> </tr><tr> <td><hr class="light_gray" align="left"></td> <td> </td> <td><hr class="light_gray" align="left"></td> <td> </td> <td><hr class="light_gray" align="left"></td> <td> </td> </tr><tr class="sermon_b1"> <td class="sermon color_ser" valign="top">13<span class="ordinal">th</span> June</td> <td class="sermon color_ser" valign="top" align="center"> <a href="sermons/ah_20100613am.mp3"><img src="images/speaker_bl.jpg" alt="Download sermon. Preacher: Phil Highton. Preacher: Phil Highton" title="Download sermon. Preacher: Phil Highton. Preacher: Phil Highton" border="0"></a> </td> <td class="sermon color_ser" valign="top">Psalm 73: 27-28</td> <td class="sermon color_ser" valign="top" align="center"> <a href="sermons/ah_20100613pm.mp3"><img src="images/speaker_bl.jpg" class="va_zero" alt="Download sermon. Preacher: Dave Walker" title="Download sermon. Preacher: Dave Walker" border="0"></a> </td> <td class="sermon color_ser" valign="top">Matthew 11:16-24</td></tr> |
I'm certain it's by no means elegant code, but it works!
Thanks in anticipation
Tony



Print Thread
cheshire_man