/    Sign up×
Community /Pin to ProfileBookmark

Blinking red and green colors in HTML.

Hi, I never have done, such a thing, I need some code in html, first red color flashes 2 times, then green color flashes (blinks) 2 times, and so on. The size ?of the colors maybe around 2 X 2 inches.

Thanks in advance,
Surgey :mad:?

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@mapleMitchFeb 01.2011 — I think you will have to use basic javascript to produce something like this, or HTML5 should be up to the job if you are working with that.
Copy linkTweet thisAlerts:
@eval_BadCode_Feb 04.2011 — use a 1x1px animated gif.

Javascript is a nuisance (if you ask me).

Just set it to the background image,

background-repeat:repeat;
Copy linkTweet thisAlerts:
@Surgey46authorFeb 04.2011 — I need some code, or sample. Thanks.
Copy linkTweet thisAlerts:
@tirnaFeb 04.2011 — Fairly straight forward with either setInterval or setTimeout. If you get stuck, post your code and we can help you get it working.
×

Success!

Help @Surgey46 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.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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

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