Results 1 to 4 of 4

Thread: Pausing up-down message scroller : message from XML

  1. #1
    Join Date
    Nov 2004
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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.

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Nov 2004
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  4. #4
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Use 1 external file with 7 variables in it.

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •