View Full Version : Is this possible

07-25-2005, 08:20 AM
only being able to use html.dhtml and javascript(free hosting). is it possible to like link a .txt file to all your pages instead of entering the same code over and over again on each code like the javascript one <script language="javascript" src="passwords.js"></script>. is there a way to insert code like that so you dont have to do all this copy and pasting and if you want to edit something you have to go thro every single page and change it?

07-25-2005, 08:27 AM
It's like your entire mind just exploded onto the internet in text form - could you rephrase that please?


07-25-2005, 08:32 AM
The resources avaliable to me are basic HTML, DHTML and javascript, as I am using free hosting. Is it possible for me to insert text from a saved file to all pages, instead of entering the same code over and over again on each page (Similar to the javascript <script language="javascript" src="passwords.js"></script>.)

If I've interpreted you correctly, and your resources are that limited, try this.

Create a file called "text.js" and write the following in it:

document.write("text here. any \"quotes\" must be backslashed like so.");

And then link to it wherever you like using <script type="text/javascript" src="text.js">.


07-25-2005, 03:35 PM
Ugly, but the only way. You're really better-off getting some decent hosting, or doing it yourself.