Results 1 to 2 of 2

Thread: Syntax error on Swissarmy slide show

  1. #1
    Join Date
    Oct 2008
    Thanked 0 Times in 0 Posts

    Default Syntax error on Swissarmy slide show

    1) Script Title: Swissarmy slide show

    2) Script URL (on DD):

    3) Describe problem: I'm using Dreamweaver CS4 as my web editor. When viewing the slide show in preview mode, under the description where it shows the slide number, it looks like "Viewing Image: 1�of 30" when previewing in Firefox, and in IE, instead of the question mark in a diamond, it's an empty box.
    Last edited by TequilaMB; 11-15-2012 at 10:49 PM. Reason: Solved original problem, found new one.

  2. #2
    Join Date
    Mar 2005
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries


    There is no � character in the script at that point. Depending upon the encoding, there could be one here:

    Viewing Image: 1 of�30

    But then again, it may depend upon how you saved it as well as the encoding. In any case try this - Using a text only editor like NotePad, open up the swissarmy.js file and find this line (around line number 119):

    document.write('<div align="center">Viewing Image: <b><span id="thecnt'+this.issid+'"><\/span><\/b> of<span style="font-size:1ex;">&nbsp;</span>&nbsp;<b>'+this.imgs.length+'<\/b><\/div>');
    It may or may not look exactly like that. Notice the highlighted space and the highlighted &nbsp; token.

    Regardless of what it looks like (it might be a � character, or look like a normal space, or be more than one character including a space or not), highlight whatever is there and type a space character into it. If the &nbsp; token is not there, replace whatever is there with a &nbsp; token. Save the file and use that.

    The browser cache may need to be cleared and/or the page refreshed to see changes.

    If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.
    - John

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. Replies: 1
    Last Post: 01-28-2011, 03:39 AM
  2. ultimate fade in slide show 2.1 screen error
    By wordwood in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 12-04-2009, 04:16 PM
  3. Error and Slide Show not Working. Please help!
    By johnwboyd in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 02-22-2008, 06:21 PM
  4. IE JS Error on Blending Image Slide Show Script
    By ncrouse in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 12-04-2007, 10:36 AM
  5. swissarmy slide show issue
    By rkk in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 09-10-2007, 05:52 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts