PDA

View Full Version : Resolved help with - Text and Image Crawler



THE BLUE DRAGON
05-11-2009, 08:37 PM
Hey!
when I'm using the "Text and Image Crawler"
(http://www.dynamicdrive.com/dynamicindex2/crawler/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:


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

THE BLUE DRAGON
05-12-2009, 03:58 PM
sorry for jumping the topic,
but does anyone know what to do to make it work please?

THE BLUE DRAGON
05-13-2009, 07:23 AM
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:

<body onload="setTimeout('StartMarquee()',3000);">

the new script:

<div id="mycrawler2"><div id="my_xml_data"></div></div>


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

student101
07-13-2009, 12:39 PM
This beats the please wait loading... idea!
NEAT!!!