www.webdeveloper.com
Results 1 to 3 of 3

Thread: blink for twice then stop blinking

  1. #1
    Join Date
    Feb 2006
    Location
    india
    Posts
    678

    blink for twice then stop blinking

    Hi Guys,

    I am trying to display a text which will blink 2 times and after that no blinking.

    The css is ready but the php code is not working.

    here is my code:

    PHP Code:
    for($i=1;$i<=2;$i++)
                    {
                                                              
                     
                    if($count < 3)
                    {
                     
                    ?>
                     <div class="mailsent">Message successfully sent.We will get back to you soon.</div>
                    <?
                    
    }
                    else
                    {
                     
                    
    ?>
                     <div class="mailsentwoblink">Message successfully sent.We will get back to you soon.</div>
                    <?
                    
    }
                    
    $count++;
                    }
    Please suggest the best possible way.

    Thanks,

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,322
    Since PHP runs on the web server, not in the browser, you probably want to look at JavaScript to create your blinking effect, since it runs in the browser.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Feb 2006
    Location
    india
    Posts
    678
    hmm...let me google with it then....thanks for your suggestion as always

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles