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