zachary.etheart
07-02-2008, 11:50 PM
I have a site that uses almost no javascript, but I thought it would be handy for this function. Basically, I have a small DIV box on every page of my site; its position and formatting are kept constant through a "screen" CSS source.
The box's purpose is to display notices about the site such as downtime scheduling and new content notifications. When I don't need it, I simply change the display attribute to "display: none;"
My problem:
But whenever I want to change the message in the DIV, I visit every page and copy and past the message.
I want to know if I can use some JavaScript function to pull a body of text from a single source, like the "screen" attribute of CSS, so that it presents text on each page from one source.
Any feedback is very appreciated, thanks!
The box's purpose is to display notices about the site such as downtime scheduling and new content notifications. When I don't need it, I simply change the display attribute to "display: none;"
My problem:
But whenever I want to change the message in the DIV, I visit every page and copy and past the message.
I want to know if I can use some JavaScript function to pull a body of text from a single source, like the "screen" attribute of CSS, so that it presents text on each page from one source.
Any feedback is very appreciated, thanks!