PDA

View Full Version : Pausing up-down message scroller : message from XML



stormgts
11-09-2004, 10:17 AM
Hi,

I've downloaded and integrated this very good script to my site, but I would like to know if it is possible that the message that scolls come from an external xml file instead of being hard coded in the script.

Anyone has an idea of how to do so ?


thx in advance


PS : http://www.dynamicdrive.com/dynamicindex2/crosstick.htm (http://) , this is the script I'm talking about.

cr3ative
11-09-2004, 02:12 PM
Well, what I do on my site (see sig), is call an additional external script which has inside it the variable I want to set.

So instead of this:
variable="text to scroll"

I put this:
</script><script src="text.js"><script>

And the text.js file contains the first line, variable="text to scroll". This way, I have all my pages reading one text file, which is a heck of a lot easier to manage.

So yes, I should imagine it is in some way possible to do this with xml.. but it's a lot easier using java :)

cr3ative

stormgts
11-09-2004, 08:18 PM
Thanks for your prompt answer Creative,

Nice idea that you had doing this :-), but I just have one question, how do you do if you have like 7 differents text to scroll that usually takes 7 var="text to scroll" ?

Do you use 7 external files ?

Thanks in advance for your answer

Fp

cr3ative
11-10-2004, 06:27 PM
Use 1 external file with 7 variables in it.

cr3ative