Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3852732
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:21:39+00:00 2026-05-19T17:21:39+00:00

I know blinking is not a nice thing. However… I have a long complex

  • 0

I know blinking is not a nice thing. However…

I have a long complex HTML form with a number of compulsory fields. As well as highlighting the empty text boxes I want to draw attention to them by flashing the text of the question for maybe three seconds.

All the javascript/css methods I can find all seem to fall over when there is more than one such item to blink or are designed for leaving the item blinking all the time.

Any suggestions for how to achieve this?

The method at What is the replacement for a blinking text in a web page? seems like overkill.

thanks

Derek

I’ve tried this (to blink each designated span just over three seconds) but it only works on the first item it’s called for:

function blinkOn(span){
    span.counter=0;
    span.defColor=span.style.color;
    span.alertTimerId =setInterval("blinkOnce('"+span.id+"')", 400 );
}

function blinkOnce(spanID){
    var span=document.getElementById(spanID)
    span.counter++;
    if(span.style.color==span.defColor){
        span.style.color='transparent'}
     else{
        span.style.color=span.defColor;
     }
    if(span.counter>8){
        blinkOff(span);
    }   
}

function blinkOff(span){
   clearInterval(span.alertTimerId);    
   span.style.color=span.defColor;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T17:21:40+00:00Added an answer on May 19, 2026 at 5:21 pm

    I’m not exactly clear about the behavior you desire, but it sounds like you might be able to flash the question (or take some kind of action) using a Javascript timer. You can create unique timers for each element that you want to flash. And you can flash them once or set them up to repeat infinitely or up to a limit. Here’s one example:
    http://www.elated.com/articles/javascript-timers-with-settimeout-and-setinterval/

    I took some time to work this out this morning. If you haven’t gotten yours to work yet, I hope you can adapt this to help.

    <html>
      <head>
        <script type="text/javascript">
          var idArray = [];
          var defaultColor = '#000000';
    
          function makeItemsBlink(blinkTime) {
            blinkForTime('q1', blinkTime, '#ff0000');
            blinkForTime('q2', blinkTime, '#00ff00');
            blinkForTime('q3', blinkTime, '#0000ff');
          }
    
          function blinkForTime(id, blinkTime, blinkColor) {
            idArray[id] = setInterval('toggleColor("' + id + '", "' + blinkColor + '")', 400);
            setTimeout('stopBlinking("' + id + '")', blinkTime);
          }
    
          function stopBlinking(id) {
            clearInterval(idArray[id]);
            document.getElementById(id).style.color = defaultColor;
          }
    
          function toggleColor(id, blinkColor) {
            var e = document.getElementById(id);
            var currentColor = e.style.color;
            if (currentColor == defaultColor) {
              e.style.color = blinkColor;
            }
            else {
              e.style.color = defaultColor;
            }
          }
        </script>
      </head>
      <body onload="makeItemsBlink(3000);">
        <div id="q1">Test question 1</div>
        <div id="q2">Test question 2</div>
        <div id="q3">Test question 3</div>
      </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know in certain circumstances, such as long running processes, it is important to
I know, I would have thought the answer was obviously no as well, but
I know similar questions have been posted before, but I have specific requirements that
I have a login.jsp page which contains a login form. Once logged in the
I have this animation with me, a sort of blinking animation, such that when
Know of an OCAML/CAML IDE? Especially one that runs on Linux?
Know of any good libraries for this? I did some searches and didn't come
I know Microsoft has made efforts in the direction of semantic and cross-browser compliant
Anyone know if it's possible to databind the ScaleX and ScaleY of a render
I know that I can do something like $int = (int)99; //(int) has a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.