PDA

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



taygraphics
09-09-2008, 04:44 PM
1) Script Title:
Swiss Army Image Slideshow
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex14/swissarmy/index.htm
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):

http://www.taylor-graphics.net/advantage_garage/gallery3.html

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

Thanks!

John

jscheuer1
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:


<\/span><\/b>_of<span

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:


<\/span><\/b>&nbsp;of<span

as this has proved successful in similar situations.

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