/    Sign up×
Community /Pin to ProfileBookmark

Dropping text word by word

Hi
I have set myself the task of re-writing a script that drops text word by word onto a page as it loads (cheesy but I’m interested from a point of view of learning Javascript) The original used document.layers which is no longer supported.
Basically I want to take the string defined by a <div> tag into my function using getElementById but I then need to break it into individual words to drop them. I thought I could manipulate the object as an array but it won’t accept an index. I also expected the object to have a property something like ‘text’ or ‘string’ but apparently not.
Grateful for any help, hope you can understand what I’m on about. A good recommendation for a book or website where Javascript objects and their properties are explained in some detail would be a good start!

Thanks

CookieB

to post a comment
SEO

2 Comments(s)

Copy linkTweet thisAlerts:
@happy_handsJan 24.2005 — Hi CookieB,

You might want to post this in the Javascript forum instead? (it might help with getting a response).

Warmest regards,

Jason
Copy linkTweet thisAlerts:
@CookieBauthorJan 25.2005 — Thanks Jason, I seem to have finger trouble big time. I thought I had posted in Javascript don't know how I ended up here

Regards

Alan
×

Success!

Help @CookieB spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...