473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

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
Jul 23 '05 #1
2 1255
"devil_online" <de************@hotmail.com> skrev i meddelandet
news:41**********************@news.telepac.pt...
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


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
Jul 23 '05 #2
Joakim Braun wrote:
"devil_online" <de************@hotmail.com> skrev i meddelandet
news:41**********************@news.telepac.pt...
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?

Consult the FAQ and DynWrite.


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.


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.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tony | last post by:
Hello, Can someone please point me toward a regular expression that goes through a string and contructs a list of sentences and part sentences, where words are gradually dropped from the front...
15
by: Randall Parker | last post by:
I've noticed when exporting from Microsoft Word XP into an HTML file that Word uses a span style of mso-spacerun: yes. This has the effect of making there be about 2 spaces between sentences. So...
12
by: effendi | last post by:
Hi can anyone tell me what is the best way to determine the number of sentences that someone enter into a text area? Thanks in advanced.
7
by: Andy Bates | last post by:
I have hopefully a simple problem in C#. I designed a form with a listview on left, vert splitter against that, then the remainder of the form from top to bottom: a listview, horiz splitter and...
6
by: crazyjh | last post by:
hello i want to add some controls in according of the time. but when the time change, i call the method again to add controls again,No effect! i think maybe i should unload the controls adding...
17
by: Umesh | last post by:
Please try to do it while I try myself!
1
by: icesha | last post by:
hello. good day. i am currently studying php on my own.and im just new to it. i have a problem on how to parse sentences inputted by the user into some sentence patter like subject - predicate. i...
3
by: mark1491 | last post by:
I am trying to split a string into sentences with preg_split, but I would like it to not split initials. Examples: Mark H. Doolittle is my name. What is yours. ( I don't want it to split the...
2
by: litun | last post by:
hi i want to arrange the sentences as per their line numbers,i.e,in ascending order.i have the line numbers stored in an array list and the sentences in another array list.how can i arrange...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.