Jump to content

Blinking text with IE,,


GBS

Recommended Posts

Hi,

For those who have tried the < blink > tags using that lovely IE without success, maybe this kind of function could help some,
[code]function BlinkText(node)
{
var interval=400; // set the interval for the blink
var times_to_blink=4; // set the times to blink
for (i=0;i<times_to_blink;i++)
    {
    eval("setTimeout(\"document.getElementById('"+node+"').style.display='none';\","+interval+")");
    interval=interval+400;
    eval("setTimeout(\"document.getElementById('"+node+"').style.display='block';\","+interval+")");
    interval=interval+400;
    }
}[/code]
then, call the function like:
[code]<div id="text_to_blink">am I blinking ?</div>
<script>
BlinkText('text_to_blink');
</script>[/code]
to test:
[a href=\"http://bdmusique.free.fr/patoche/\" target=\"_blank\"]blinking text with IE[/a]

l8tr,,

ps: It's not me on the picture,... just someone who want to be famous,... :))
Link to comment
https://forums.phpfreaks.com/topic/11551-blinking-text-with-ie/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.