/    Sign up×
Community /Pin to ProfileBookmark

fading out a update message with css/javascript

hi guys, can someone assist with this?

if i had a paragraph coded up like this:

<p id=’msg’><strong>Success:</strong> Changes have been saved!</p>

how would i use CSS/JavaScript/DOM to make the update message fade out and then disappear completely from the screen?

kinda like how wordpress tells you that a change has occurred and then it fades away and dissapears. i think facebook does this too if you don’t click close on messages that appear like after you add a friend?

if i can’t get the fade out effect i’d be happy to just make it disappear after say 3 seconds.

i don’t know how to use jquery but i’ve been using the other languages for about 10 years

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@bsmbahamasauthorApr 01.2010 — Thanks so much Fang, I'll check it out now!

enjoy the Easter holiday, i know i will.
×

Success!

Help @bsmbahamas 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 4.18,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...