Results 1 to 3 of 3

Thread: How to delete a question mark in code in Swiss Army Image Slideshow

  1. #1
    Join Date
    Apr 2008
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default How to delete a question mark in code in Swiss Army Image Slideshow

    1) Script Title:
    Swiss Army Image Slideshow
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...army/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/advan.../gallery3.html

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

    Thanks!

    John

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Looks like this (highlighted and underlined) space in this line:

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

    Code:
    <\/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:

    Code:
    <\/span><\/b>&nbsp;of<span
    as this has proved successful in similar situations.
    - John
    ________________________

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

  3. #3
    Join Date
    Apr 2008
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Smile Thank you!

    Thanks, John. That worked! Many thanks!

Bookmarks

Posting Permissions

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