View Full Version : How to delete a question mark in code in Swiss Army Image Slideshow

09-09-2008, 04:44 PM
1) Script Title:
Swiss Army Image Slideshow
2) Script URL (on DD):
3) Describe problem:
How do I delete the question mark that appears in the line of type which reads:
Viewing Image: 1�of 3

Here is the slideshow on a website I designed: (Swiss Army slideshow 1):


I've tried everything that I can think of, but to no avail.



09-09-2008, 05:20 PM
Looks like this (highlighted and underlined) space in this line:

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>');

Let's zoom in:


Some servers just don't get it right when serving certain spaces in javascript code, I've seen similar things before, but I'm not sure why it happens - probably something to do with character encoding. I'd try changing it to a non-braking space entity:


as this has proved successful in similar situations.

09-09-2008, 05:39 PM
Thanks, John. That worked! Many thanks!