PDA

View Full Version : Ajax XML Ticker (txt file source)



andreathedove
12-03-2007, 05:03 PM
1) Script Title: Ajax XML Ticker (txt file source)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/ajaxticker.htm

3) Describe problem: Hello,
how I can display more than one script in a unic page?

Thanks,
Andrea

ddadmin
12-04-2007, 02:07 AM
Do you mean multiple tickers on a single page? The script certainly supports this. Just call the initialization code multiple times. For example:


<script type="text/javascript">
var xmlfile="tickercontent.txt" //path to ticker txt file on your server.
new ajax_ticker(xmlfile, "ajaxticker1", "someclass", 3500, "fade")
</script>

And:


<script type="text/javascript">
var xmlfile2="tickercontent.txt" //path to ticker txt file on your server.
new ajax_ticker(xmlfile2, "ajaxticker2", "someclass", 3500, "fade")
</script>

Be sure the IDs for each ticker is unique for each instance (code in red).

andreathedove
12-04-2007, 06:17 PM
Thanks

andreathedove
02-19-2008, 09:24 PM
Hello,
with the same script, how I can rotate images instead text?

Thanks,
Andrea