Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want a blinking button in asp.net page. please help.
Posted
Updated 4-Sep-19 20:42pm
Comments
Raje_ 25-Feb-13 4:16am    
wrap your button with this tag :- blink

Define a CSS class like-

.blink
{
text-decoration:blink
}

call this CSS for the linkbutton.

<asp:linkbutton id="LinkButton1" runat="server" CssClass="blink">LinkButton</LinkButton>
 
Share this answer
 
v3
Comments
member60 25-Feb-13 5:07am    
my 5!
But this doen't work always such as it will not work in IE9.
Thus better option is to go for jquery.
have a look at the folowing link or surf through jquery site.
http://archive.plugins.jquery.com/project/blink
Dhanashree Dive

still i am working on your problem tried many code in java script using css and also in html............i got one thing that there is issue with browser compatibility....some code only runs on google Chrome however some only explorer and also some Mozilla Firefox.....
but most of all codes easily run on Firefox.....this is a very easy code out of all practice that run on Mozilla....

C#
//on page load event do it where LinkButton1 is your control Id... 
 LinkButton1.Attributes.Add("style", "text-decoration:blink");


thanks
Happy to help
 
Share this answer
 
v2
Comments
Dhanashree Dive 25-Feb-13 5:01am    
Ok shubh Agrahari.. thank u for you time.. Actually I m running my code in chrome only.
Shubh Agrahari 25-Feb-13 5:03am    
ya friend its ma pleasure to to help you buddy....then still what you thinking got any solution for all browser...?
Blink doesnot work in every Browser. Try using Some ohter Browser.
If it is working in other Browsers then you your coding is correct . . . .

Chk by CSS's decoration or by HTML's Blink tag in aspx page only.
 
Share this answer
 
Hii buddy...

there is type of different scripting language....

XML
//Java Script

<script type="text/javascript">

        function doBlink() {

            var blink = document.all.tags("BLINK")

            for (var i = 0; i < blink.length; i++)

                blink.style.visibility = blink.style.visibility == "" ? "hidden" : ""

        }

        function startBlink() {

            if (document.all) setInterval("doBlink()", 500)

        }

        window.onload = startBlink;

    </script>



//CSS

    <style type="text/css">

        blink

        {

            -webkit-animation-name: blink;

            -webkit-animation-iteration-count: infinite;

            -webkit-animation-timing-function: cubic-bezier(1.0,0,0,1.0);

            -webkit-animation-duration: 1s;

        }

    </style>



//HTML

 <span style="color: Red; font-size: 11px; font-family: Times New Roman;">

                            <blink>New!</blink>

                        </span>


from this link...

How to blink a text on IE browser.???[^]

happy to help
 
Share this answer
 
v2
Comments
Dhanashree Dive 25-Feb-13 4:09am    
It is not working .. I want button blink.
Shubh Agrahari 25-Feb-13 4:10am    
what error showing...?
Dhanashree Dive 25-Feb-13 4:14am    
no error.. but doesnot showing any effect.
Shubh Agrahari 25-Feb-13 5:09am    
Tadit have any solution...for this?
Wrap you button with
HTML
<blink></blink>
tag:-

Eg.

HTML
<blink> <input type="button" value="Blink" name="btn" /> </blink>


Good luck.
 
Share this answer
 
v3
Comments
Dhanashree Dive 25-Feb-13 4:30am    
Yaa.. I have tried that too.. but not working.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900