4
Contributors
3
Replies
18
Views
3 Years
Discussion Span
Last Post by frankjames018
0

A quick search online reveals quite a bit of solutions. Here is one where someone wrote their own plug-in for jQuery: http://www.antiyes.com/jquery-blink-plugin

However, i think a plugin is kind of an overkill.

Here is a few lines of jQuery code that applies the "blink" to any element with a class of "blink".

<!DOCTYPE html>
<html>
<head>
 <script src="jquery.js"></script>
</head>
<body>
<p class="blink">This text will blink...</p>

<script>
$('.blink').each(function() {
    var e = $(this);
    setInterval(function() {
        if (e.css('visibility') == 'hidden') {
            e.css('visibility', 'visible');
        } else {
            e.css('visibility', 'hidden');
        }    
    }, 500);
});
</script>
</body>
</html>

Of course modify the script element above to point to your jQuery library.

0

Remember that blinking text was done as a joke by Netscape to demonstrate that html could do some strange things. It was NEVER intended to be used, and is a bit amateurish. It's probably been removed from your browser's parsing engine to improve the quality of websites everywhere.

Edited by drjohn

0

blinking a test or phrase is not a good aspect for a good website. other than use this for making some text blink.

<blink>Why use this?</blink>

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.