adding sentences

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

    #1

    adding sentences

    Hi, I want to put sentences in a page...like start at 9pm and ads more
    sentences like 5 in 5minutes, not erasing the others.

    how can I do it in javascript?

    thanks


  • Joakim Braun

    #2
    Re: adding sentences

    "devil_onli ne" <devil_online70 @hotmail.com> skrev i meddelandet
    news:4139052d$0 $1840$a729d347@ news.telepac.pt ...[color=blue]
    > Hi, I want to put sentences in a page...like start at 9pm and ads more
    > sentences like 5 in 5minutes, not erasing the others.
    >
    > how can I do it in javascript?
    >
    > thanks[/color]

    You instantiate a Date() object, which gives you the local time on the
    user's computer. Then you check the time and document.write( ) accordingly
    (or show/hide DIVs or whatever). Of course, the entire contents are visible
    to anyone who looks at your source code.

    Joakim Braun


    Comment

    • Randy Webb

      #3
      Re: adding sentences

      Joakim Braun wrote:
      [color=blue]
      > "devil_onli ne" <devil_online70 @hotmail.com> skrev i meddelandet
      > news:4139052d$0 $1840$a729d347@ news.telepac.pt ...
      >[color=green]
      >>Hi, I want to put sentences in a page...like start at 9pm and ads more
      >>sentences like 5 in 5minutes, not erasing the others.
      >>
      >>how can I do it in javascript?[/color][/color]

      Consult the FAQ and DynWrite.
      [color=blue]
      >
      >
      > You instantiate a Date() object, which gives you the local time on the
      > user's computer. Then you check the time and document.write( ) accordingly
      > (or show/hide DIVs or whatever). Of course, the entire contents are visible
      > to anyone who looks at your source code.[/color]

      Using document.write to modify a page after its loaded will destroy the
      contents of the page, along with the scripts, so its not a good idea if
      you want to add sentences "not erasing the others".


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

      Comment

      Working...