Hello everyone,
This is my code for a scrolling text box:
// The message goes here
var message = "Basically anything goes in here, html code as well";
// Then it is written within the <div> layer
document.write(message);
What I would like to do is to put the message into a .txt file and read from that into the message variable. However, after searching I'm under the impression that Javascript can't do this directly for security reasons.
I have no problem with the way it's coded right now but my users who will have access to change the message might not be to happy with this method.
Any ideas will be greatly appreciated.
Havik
This is my code for a scrolling text box:
// The message goes here
var message = "Basically anything goes in here, html code as well";
// Then it is written within the <div> layer
document.write(message);
What I would like to do is to put the message into a .txt file and read from that into the message variable. However, after searching I'm under the impression that Javascript can't do this directly for security reasons.
I have no problem with the way it's coded right now but my users who will have access to change the message might not be to happy with this method.
Any ideas will be greatly appreciated.
Havik