Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 1, 2026.

How we can write blinking text in html?

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

hayatkhansum

Established Member
Impact
1
how to write blinking text?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
2
•••
thanks man
 
Last edited:
0
•••
how to write blinking text?

Hi

though some folks don't like it, it does attract the eye

here's is code for ya:


<!DOCTYPE html>
<html>
<head>
<script>
function blinking_header()
{
if (!document.getElementById('blink').style.color)
{
document.getElementById('blink').style.color="red";
}
if (document.getElementById('blink').style.color=="red")
{
document.getElementById('blink').style.color="black";
}
else
{
document.getElementById('blink').style.color="red";
}
timer=setTimeout("blinking_header()",100);
}

function stoptimer()
{
clearTimeout(timer);
}
</script>
</head>

<body onload="blinking_header()" onunload="stoptimer()">
<h1 id="blink">Blinking header</h1>
</body>

</html>
 
0
•••
This should been in the parent form, but just basic blinking text is
HTML:
<blink>text here<\blink>
I would reccomend against using any kind of blinking though.
 
1
•••
First example is long.. second is non standard...

If you ABSOLUTELY must...

Look at jQUERY "pulsate"

I would prefer:

$("#element").fadeTo('slow', 0.5).fadeTo('slow', 1.0);

This would fade an element to 50% and then back - plus you could to this in a loop maybe 5-10 times so it's much less intrusive to the user.
 
Last edited:
0
•••
thanks u i have got it
 
0
•••
Appraise.net

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back