Results 1 to 4 of 4

Thread: help with - Text and Image Crawler

  1. #1
    Join Date
    May 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help with - Text and Image Crawler

    Hey!
    when I'm using the "Text and Image Crawler"
    (http://www.dynamicdrive.com/dynamici...wler/index.htm)
    and put a div with ID inside the scroller, it think it's blank and there is no data and give me en error
    but that 'emply' div brings content from an XML page
    but because it's not immediately it's not working and the scroller gives an error think he is empty from content.

    how can I make it work or wait like up to 1 minute until it see if there is or isn't a content inside please?

    example of my code:
    Code:
    <div id="mycrawler2"><div id="my_xml_data"></div></div>
    have a good week you all!
    and thank you Dynamic Drive for all the scripts
    Last edited by Snookerman; 05-13-2009 at 09:53 AM. Reason: added “Resolved” prefix

  2. #2
    Join Date
    May 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    sorry for jumping the topic,
    but does anyone know what to do to make it work please?

  3. #3
    Join Date
    May 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    OK I found a way to make it work!
    A friend of mine help me to delay the script in 3 seconds
    and until then the content from my XML is already arrived
    so there is a data inside the div and it works great!

    in the body:
    Code:
    <body onload="setTimeout('StartMarquee()',3000);">
    the new script:
    Code:
    <div id="mycrawler2"><div id="my_xml_data"></div></div>
    Code:
    <script type="text/javascript"> 
     
    function StartMarquee() { 
    	marqueeInit({
    		uniqueid: 'mycrawler2',
    		style: {
    			'width': '100%',
    			'height': '77px',
    			'margin': '0px',
    			'padding': '0px'
    		},
    		inc: 5, //speed - pixel increment for each iteration of this marquee's movement
    		mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
    		moveatleast: 1,
    		neutral: 100,
    		savedirection: true
    	});
     
    }
    </script>

  4. #4
    Join Date
    Feb 2008
    Posts
    137
    Thanks
    18
    Thanked 2 Times in 2 Posts

    Default

    This beats the please wait loading... idea!
    NEAT!!!
    ASCII stupid question, get a stupid ANSI!
    Beta is Latin for still doesn’t work.
    Mac users swear by their Mac, PC users swear at their PC.
    Keyboard not found...Press any key to continue.

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
  •