Results 1 to 5 of 5

Thread: Start button on Image Crawler Script

  1. #1
    Join Date
    Jan 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Start button on Image Crawler Script

    1) Script Title: Text and/or image Crawler Script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...wler/index.htm

    3) Describe problem:
    Thank u for a very nice script which we use throughout our site: Qugii

    Now i am trying to make a start button which will also work when the script is started out in "stopped" mode. I have read the "advanced" instructions, but cannot seem to make it work. Is it possible?
    Last edited by Snookerman; 01-19-2010 at 03:30 PM. Reason: resolved

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,070
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    Here's an example:

    Code:
    <div class="marquee" id="art">
    <img src="../files/photo1.jpg" alt=""> <img src="../files/photo2.jpg" alt=""> <img src="../files/photo3.jpg" alt=""> <img src="../files/photo4.jpg" alt=""> <img src="../files/photo5.jpg" alt=""> <img src="../files/photo6.jpg" alt=""> <img src="../files/photo7.jpg" alt=""> <img src="../files/photo8.jpg" alt=""> <img src="../files/photo9.jpg" alt="">
    </div>
    
    <script type="text/javascript">
    marqueeInit({
     uniqueid: 'art',
     direction: 'right',
     style: { //style object for this marquee container (use quotes on both sides of the : as shown)
    	'width': '60%',
    	'height': '235px',
    	'background-color': '#ddd',
    	'border': '1px solid #111',
    	'margin': '2ex auto 0 auto'},
     inc: 6, //speed - pixel increment for each iteration of this marquee's movement
     moveatleast: 4,
     mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
     stopped: true
    });
    </script>
    <div>
    <input type="button" onclick="marqueeInit.ar[2].stopped = false;" value="Go!">
    </div>
    Notice the red 2, it refers to the crawler instance. If you have only one crawler on the page, this would be 0. The next one would be 1, the third would be 2, etc.

    If you want more help, let me know.
    - John
    ________________________

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

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

    Default

    Hi John.

    Thanks for answering!
    I have been trying to make a pair of left/right arrows this way:

    "<input type="button" onclick="marqueeInit.ar[0].direction = 'right'; marqueeInit.ar[0].stopped = false;" value="Right!">"
    ("moveatleast" is set to: 0)

    and that works as long as you have not previously done a mouseover on the marquee. After doing a mouseover, the button stops working. Is it possible to solve this? i guess it has something to do with "moveatleast"?

    Allan

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,070
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    It could be that, at least partly. I'd really have to see the whole thing.

    Truth be told though, I believe I made some of the properties of these crawlers a bit more private than necessary, so a little more coding is required to get at all of the values you will likely need for that. Fortunately the script doesn't need to be edited, just the on page code. Try out this demo:

    http://home.comcast.net/~jscheuer1/s...dex_arrows.htm

    Use your browser's 'view source' to get the coding. If you have any questions, let me know.
    - John
    ________________________

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

  5. #5
    Join Date
    Jan 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Solved!

    Just what i needed


    Allan

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
  •