Announcement

Collapse
No announcement yet.

Script producing Errors on every page!?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Script producing Errors on every page!?

    I am running a new design on a test server and although near completion I am getting errors on every page. The errors seem t0be connected with the following syntax:

    <script language=JavaScript>
    <!--
    var currentcol = 0;
    var colwidth = Math.floor(100 / );
    // -->
    </script>

    and

    <script language=JavaScript>
    <!--
    if ( currentcol != 0 )
    {
    while ( currentcol++ < ) document.write('<td width="' + colwidth + '%"></td>');
    document.write('</tr></table></td></tr>');
    currentcol = 0;
    }
    // -->
    </script>

    Can anyone tell me what these small scripts and what I might be able to do to correct the errors please.
    Mark

    #2
    Those are part of the scripts for creating a multi-column layout and are missing the CUSTOMVAR:NUMCOLS value. You either need to create or establish a value on that customvar, or remove the code.

    (Actually that looks like some of Norman's work, so you may also need to visit www.drillpine.biz to check whether it is donationware, if you decide to keep it)
    Bill
    www.egyptianwonders.co.uk
    Text directoryWorldwide Actinic(TM) shops
    BC Ness Solutions Support services, custom software
    Registered Microsoft™ Partner (ISV)
    VoIP UK: 0131 208 0605
    Located: Alexandria, EGYPT

    Comment


      #3
      columns

      Yes, I realise this now. Problem fixed. Thanks once again for your help.
      Mark.

      Comment

      Working...
      X