Jump to content

Get text to blink


raydona

Recommended Posts

function blink(id)
{
var text = document.getElementById(id);
text.style.display = (text.style.display == 'none') 'block' : 'none';
}
window.onload = function()
{
setInterval('blink()', 100);
}

 

Untested. But somehting like that.

 

And yes, kudos to nadeemshafi9, you could easily find something like that on google.

Link to comment
Share on other sites

function blink(id)
{
var text = document.getElementById(id);
text.style.display = (text.style.display == 'none') 'block' : 'none';
}
window.onload = function()
{
setInterval('blink()', 100);
}

 

Untested. But somehting like that.

 

And yes, kudos to nadeemshafi9, you could easily find something like that on google.

 

was like the first result from the first search

Link to comment
Share on other sites

function blink(id)
{
var text = document.getElementById(id);
text.style.display = (text.style.display == 'none') 'block' : 'none';
}
window.onload = function()
{
setInterval('blink()', 100);
}

 

Untested. But somehting like that.

 

And yes, kudos to nadeemshafi9, you could easily find something like that on google.

 

i was going to do a javascript myself but then i rembered those old websites with blink text css

Link to comment
Share on other sites

you can use css to make text blink

 

use some span tags and set the style i think it comes under text-decoration then just use blink as the attribute

 

i.e.

 

<span style="text-decoration:blink;">some text you want to blink</span>

Link to comment
Share on other sites

I had to check the dates on this thread, cause I was sure it must be from '99, not '09. Has anyone actually used blinking text this millennium?

Lol.

 

And I tought text-decoration: blink didn't work in IE.

 

dunno lol, as quoted is it ever used any more, it is the worst effect that i can think of as the page viewer has to look at the text for longer to see what it says, using bold underline and italic effects are much more productive.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.