I need a script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • YoGold
    Registered User
    • Jul 2005
    • 23

    #1

    I need a script

    I have 100 html pages that I would like to be able to update a small section on each page twice a month. But I dont want to go to each page and update them individual.

    Is there a script that will allow me to changes small parts of each page with one submition?
  • mortenb
    Confirmed User
    • Jul 2004
    • 2203

    #2
    do a google search for SSI (server side includes)

    Comment

    • psili
      Confirmed User
      • Apr 2003
      • 5526

      #3
      put this in the places on the pages you want to include the update:

      Code:
      <script language="JavaScript" src="/location/of/file.js"></script>
      now create a javascript file with what you want in it.

      file.js =
      Code:
      function writeStuff()
      {
        str = "Hello. Hello. Hello";
        return str;
      }
      document.write.(writeStuff());
      Note: Very, very cheesy solution, there.
      Your post count means nothing.

      Comment

      • Screaming
        I can change this!!!!!
        • Feb 2004
        • 18972

        #4
        cheesy but works.

        Comment

        • YoGold
          Registered User
          • Jul 2005
          • 23

          #5
          thanks I will use that.

          this is a hard script to find, I figured I would find some simple php file.

          Comment

          • YoGold
            Registered User
            • Jul 2005
            • 23

            #6
            Originally posted by psili

            Code:
            <script language="JavaScript" src="/location/of/file.js"></script>
            if a surfer has javascript turned off will this not show up on the page?

            Comment

            • psili
              Confirmed User
              • Apr 2003
              • 5526

              #7
              Originally posted by YoGold
              if a surfer has javascript turned off will this not show up on the page?
              exactly.

              You can either keep all your HTML pages and do the Server Side Includes mentioned above, or turn all those pages to PHP and do something that way.

              edit: The solution I posted is, perhaps, the cheesiest possible. ;)
              Your post count means nothing.

              Comment

              • fris
                Too lazy to set a custom title
                • Aug 2002
                • 55682

                #8
                header blah blah

                <!--#include virtual="/updates.html" -->

                footer blah blah
                Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                Comment

                • YoGold
                  Registered User
                  • Jul 2005
                  • 23

                  #9
                  Originally posted by Fris
                  header blah blah

                  <!--#include virtual="/updates.html" -->

                  footer blah blah
                  So this will work? I just set up an update.html page and call it from this?

                  Comment

                  • YoGold
                    Registered User
                    • Jul 2005
                    • 23

                    #10
                    Originally posted by Fris
                    header blah blah

                    <!--#include virtual="/updates.html" -->

                    footer blah blah
                    Will this work in php, or html pages?

                    Comment

                    • YoGold
                      Registered User
                      • Jul 2005
                      • 23

                      #11
                      I guess I will have to figure out how to refresh each page to update the changes.

                      Comment

                      Working...