Results 1 to 4 of 4

Thread: Is this possible

  1. #1
    Join Date
    Jul 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Is this possible

    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?

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

    Default

    It's like your entire mind just exploded onto the internet in text form - could you rephrase that please?

    cr3
    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
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by warcheftian2
    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:
    Code:
    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">.

    cr3
    Last edited by cr3ative; 07-25-2005 at 03:48 PM.
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Ugly, but the only way. You're really better-off getting some decent hosting, or doing it yourself.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •