Help: Simple Timed Text Replace

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Monty

    Help: Simple Timed Text Replace

    Hi, I have the following in my HTML document...

    <span id='prompt'>Fil e Saved</span>

    All I want to do is replace the above "File Saved" text on my page with
    "Upload File" after about 5 seconds after the page loads again.

    Does anyone have simple code that can do this, or know of a place that has
    this code? I've scoured a bunch of sites, but, because this is probably a
    simple task, couldn't find any scripts that do exactly this.

    Thanks!!

    Monty


  • Randy Webb

    #2
    Re: Help: Simple Timed Text Replace

    Monty wrote:
    [color=blue]
    > Hi, I have the following in my HTML document...
    >
    > <span id='prompt'>Fil e Saved</span>
    >
    > All I want to do is replace the above "File Saved" text on my page with
    > "Upload File" after about 5 seconds after the page loads again.
    >
    > Does anyone have simple code that can do this, or know of a place that has
    > this code? I've scoured a bunch of sites, but, because this is probably a
    > simple task, couldn't find any scripts that do exactly this.
    >[/color]

    Search the archives for setTimeout and read the FAQ (down until Monday
    after lunch) with regards to dynamically changing a page.

    --
    Randy
    comp.lang.javas cript FAQ - http://jibbering.com/faq

    Comment

    • Monty

      #3
      Re: Help: Simple Timed Text Replace

      > Search the archives for setTimeout and read the FAQ (down until Monday[color=blue]
      > after lunch) with regards to dynamically changing a page.[/color]

      The FAQ isn't there. Monday's too late anyway.

      Anyone else have any suggestions, please?
      [color=blue][color=green]
      >> Hi, I have the following in my HTML document...
      >>
      >> <span id='prompt'>Fil e Saved</span>
      >>
      >> All I want to do is replace the above "File Saved" text on my page with
      >> "Upload File" after about 5 seconds after the page loads again.
      >>
      >> Does anyone have simple code that can do this, or know of a place that has
      >> this code? I've scoured a bunch of sites, but, because this is probably a
      >> simple task, couldn't find any scripts that do exactly this.[/color][/color]

      Comment

      • Randy Webb

        #4
        Re: Help: Simple Timed Text Replace

        Monty wrote:[color=blue][color=green]
        >>Search the archives for setTimeout and read the FAQ (down until Monday
        >>after lunch) with regards to dynamically changing a page.[/color]
        >
        >
        > The FAQ isn't there. Monday's too late anyway.
        >
        > Anyone else have any suggestions, please?[/color]

        Search the c.l.j archives at groups.google.c om

        You can find the FAQ there as well, posted in plain text.

        --
        Randy
        comp.lang.javas cript FAQ - http://jibbering.com/faq

        Comment

        • Dr John Stockton

          #5
          Re: Help: Simple Timed Text Replace

          JRS: In article <5MydnXSDRf28bo LcRVn-ug@comcast.com> , dated Sun, 15 Aug
          2004 19:34:57, seen in news:comp.lang. javascript, Randy Webb
          <HikksNotAtHome @aol.com> posted :[color=blue]
          >Monty wrote:
          >[color=green]
          >> Hi, I have the following in my HTML document...
          >>
          >> <span id='prompt'>Fil e Saved</span>
          >>
          >> All I want to do is replace the above "File Saved" text on my page with
          >> "Upload File" after about 5 seconds after the page loads again.
          >>
          >> Does anyone have simple code that can do this, or know of a place that has
          >> this code? I've scoured a bunch of sites, but, because this is probably a
          >> simple task, couldn't find any scripts that do exactly this.
          >>[/color]
          >
          >Search the archives for setTimeout and read the FAQ (down until Monday
          >after lunch) with regards to dynamically changing a page.[/color]


          Any reasonable News service will still have the News version of the FAQ
          which was posted last Friday; indeed should have all articles from at
          least a week or two back.

          Perhaps some of those whose sigs refer to the newsgroup FAQ and are not
          already full might add a reference to the FAQ in News? It requires only
          one line; see below.

          The code could be obtained by simplifying the start of my js-date2.htm;
          to which I have added an example using DynWrite from the newsgroup FAQ.

          --
          © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
          <URL:http://www.jibbering.c om/faq/> JL/RC: FAQ of news:comp.lang. javascript
          FAQ is posted in <URL:news:comp. lang.javascript > thrice weekly in two parts.
          <URL:http://www.merlyn.demo n.co.uk/js-index.htm> jscr maths, dates, sources.

          Comment

          Working...