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