GBS Posted June 9, 2006 Share Posted June 9, 2006 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 blinkvar times_to_blink=4; // set the times to blinkfor (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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.