-
Pausing up-down message scroller : message from XML
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 , this is the script I'm talking about.
-
-
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
-
-
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
-
-
Use 1 external file with 7 variables in it.
cr3ative
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks