Jump to content


Photo

Blinking text with IE,,


  • Please log in to reply
No replies to this topic

#1 GBS

GBS
  • Members
  • PipPipPip
  • Advanced Member
  • 108 posts

Posted 09 June 2006 - 03:45 AM

Hi,

For those who have tried the < blink > tags using that lovely IE without success, maybe this kind of function could help some,
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;
    }
}
then, call the function like:
<div id="text_to_blink">am I blinking ?</div>
<script>
BlinkText('text_to_blink');
</script>
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,... :))
Sorry for my english,... I do my best, but sometimes,...
1st intention: understand the problem
2nd intention: try to solve it
3rd intention: try to understand how to solve it :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users