In HTML,CSS BLINKING TAG IS NOTWORKING?I NEED PROGRAM IN JAVASCRIPT FOR BLINKING THE TEXT..

Recommended Answers

All 3 Replies

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.

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.

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>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.