PDA

View Full Version : DOM XML TICKER & SCROLLING



stormgts
11-10-2004, 10:06 AM
Hello,

I've found two very nice scripts on dynamic drive :

Here are the scripts URLs:

crosstick:

xmlticker : [URL=]http://www.dynamicdrive.com/dynamicindex2/xmlticker2.htm (]http://dynamicdrive.com/dynamicindex2/crosstick.htm[/URL)

My problem is that ideally, I need a mix from both scripts :-)

Let me explain :

I will use xmlticker as my base scripts to share my news across many parts of my site using xml, but for now the xmlticker script does not really scroll the news but just let them appears one after another in the ticker box (look here for a demo (http://www.dynamicdrive.com/dynamicindex2/xmlticker2.htm)).
One the other hand the crosstick script does scroll perfetly and smootlhy the news, but does not feed from an xml file(look here for a demo (http://www.dynamicdrive.com/dynamicindex2/xmlticker2.htm)).

Idealy, the perfect script would be a mix between both, allowing you to feed the news scroller from an outside xml file, but also allowing you to customize the way it scrolls and the text decorations mybe via a simple css file (colors, fonts, link colors, onmouse over etc...)

If anyone can help :-)

Thanks in advance

Fp

cr3ative
11-10-2004, 06:10 PM
So you want multiple pages to read from one data file with text in? I did too, and I sorted it out, rawr.

Ok, so the line where it wants you to define the text:

text="whatever";

or something like that, save that line to file text.js, and replace it with

</script><script src="text.js"></script><script>

on each page and it'll read the text from text.js and set the variable like that.

Not sure about XML, but this is still a lot better for text management.

cr3ative

stormgts
11-11-2004, 01:20 PM
thanks for the answer concerning the external file issue, by the way do you have any idea on the scrolling issue ?

Thanks in advance

ddadmin
11-16-2004, 05:16 AM
Regarding the scrolling customization, unfortunately due to time constraints, most of us don't have the time to help out in this area. Sorry.

stormgts
11-16-2004, 02:07 PM
Hi,

thanks for the answer, I'll try to ask a few friends if they can help me to customize the script, If i manage to do so, I'll let you know in case you are interested to publish it on DD.

Bye

gts