Results 1 to 6 of 6

Thread: Conveyor Belt Slideshow - imagegap

  1. #1
    Join Date
    Mar 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Conveyor Belt Slideshow - imagegap

    Script: Conveyor Belt Slideshow
    URL: http://www.dynamicdrive.com/dynamici...rightslide.htm

    This is another great slideshow! It is especially useful when there is a need to display differing widths in the images. However, if I set the variable "imagegap" to anything other than a null value (imagegap=""), the value of imagegap itself displays in the gap area between images. Is there anyway to suppress the displaying of the imagegap value?

    Thanks!

  2. #2
    Join Date
    Aug 2005
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    why not

    var imagegap="0"

    var slideshowgap=0

    ?

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Try:
    Code:
    var imagegap=10
    Notice that there aren't any quotes.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Mar 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    I've tried it with quotes, without quotes, imagegap="0". I've been unable to get rid of the imagegap display. This is a long slideshow (too long), but take a look:

    http://www.viennapres.org/FFrame.asp?Pg=2&MGN=VPC-52

    Bill

  5. #5
    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

    There are two values that control two different gaps in this script:

    Code:
    //Specify gap between each image (use HTML):
    var imagegap=" "
    
    //Specify pixels gap between each slideshow rotation (use integer):
    var slideshowgap=5
    The first is a string value. It represents what is shown between the images. For example if you do:

    Code:
    //Specify gap between each image (use HTML):
    var imagegap="Bob's Uncle"
    Then you get the words (string value) "Bob's Uncle" between each image. For no gap use empty quotes, without even a space:

    Code:
    //Specify gap between each image (use HTML):
    var imagegap=""
    As indicated by the comment above it, you could also use HTML, like:

    Code:
    //Specify gap between each image (use HTML):
    var imagegap="<img src='spacer.gif'>"
    But, for your purposes, I think you just want the empty quotes. Now the second variable:

    Code:
    //Specify pixels gap between each slideshow rotation (use integer):
    var slideshowgap=5
    Is a number. It is the pixel value between the end of one full train of images and the next. If memory serves, this is not always precise in all browsers but, has nothing to do with the gap between each individual image. It should not be quoted.
    - John
    ________________________

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

  6. #6
    Join Date
    Mar 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dumb Me!

    Thanks, John. You bailed me out again. All I could think was that "imagegap" specified the width of the gap, not the content of the gap. Thanks again.

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
  •