Results 1 to 5 of 5

Thread: Text and Image Crawler v1.5 - Adding More Spaces

  1. #1
    Join Date
    Jan 2012
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Text and Image Crawler v1.5 - Adding More Spaces

    http://www.dynamicdrive.com/dynamici...wler/index.htm

    Question:
    Is it possible to add more spaces between passes for the Text Crawler?

    The [AddedSpace: true] parameter adds only a sigle space. What do I do if I want to add say 10 spaces, which I need to do to make my repetitive short text more readable?

    Many thanks.

  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

    Insert a span (highlighted in the below, scroll the code block to see it) with non-breaking space characters in it. For example:

    Code:
    <div class="marquee" id="marquee1">
    That dizzy turtledove dissonantly casts out your flouting testosterone. Our disparaging whales disinterestedly accept their average cabbages. <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
    </div>
    <script type="text/javascript">
    marqueeInit({
     uniqueid: 'marquee1',
     style: { //style object for this marquee container (use quotes on both sides of the : as shown)
    	'width': '50%'},
     inc: 2 //speed - pixel increment for each iteration of this marquee's movement
    });
    </script>
    - John
    ________________________

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

  3. #3
    Join Date
    Jan 2012
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you, Sir, for the swift reply.
    I can now add spaces between words in the text.

    What I need is for the repeating passes to appear only after some spaces have been added to the end of the preceding pass, which means to say, after the first past, there should be the added spacing before the next pass of the text appears.

    Many thanks.

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

    That is what my answer provides for, spaces at the end of each pass. If you want two passes before any spaces, repeat the content before adding the spaces. But I don't think that's what you're asking.

    If you want more help, please post 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

  5. #5
    Join Date
    Jan 2012
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thank You

    You are right there, Sir. Your solution works perfectly.
    Earlier, my amended file was not properly uploaded.

    You certainly made my day. Thank you again for the kind help.

    Warmest regards.

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
  •