I have a page and there are some data on it which are retrieved from database. According to a specific data I would like to blink a text on the screen. Is there a way to do it?
best Regards.
Keep your friends close and your enemies even closer
/* This is the css style that will make your text blink.*/
.blinkytext {
font-family: Arial, Helvetica, sans-serif;
font-size: 1.2em;
text-decoration: blink;
font-style: normal;
}
cenk1536
Contributor
2501 Points
2115 Posts
Blinking Text on Screen?
May 17, 2012 09:23 AM|LINK
Hi,
I have a page and there are some data on it which are retrieved from database. According to a specific data I would like to blink a text on the screen. Is there a way to do it?
best Regards.
urenjoy
Star
12289 Points
1848 Posts
Re: Blinking Text on Screen?
May 17, 2012 09:26 AM|LINK
Use html blink tag
http://reference.sitepoint.com/html/blink
Or in CSS
/* This is the css style that will make your text blink.*/ .blinkytext { font-family: Arial, Helvetica, sans-serif; font-size: 1.2em; text-decoration: blink; font-style: normal; }For Cross Browser, check following good link:
http://stackoverflow.com/questions/4894488/blinking-text-cross-browser
mishra.bhupe...
Participant
1596 Points
378 Posts
Re: Blinking Text on Screen?
May 17, 2012 09:30 AM|LINK
what about the html tag blink
<blink> Content to blink </blink>
Try it.
Thanks.
kedarrkulkar...
All-Star
34459 Points
5543 Posts
Re: Blinking Text on Screen?
May 17, 2012 09:33 AM|LINK
you should use some jquery plugin... like this
http://www.antiyes.com/jquery-blink-plugin
hope this helps...
KK
Please mark as Answer if post helps in resolving your issue
My Site
cenk1536
Contributor
2501 Points
2115 Posts
Re: Blinking Text on Screen?
May 17, 2012 09:36 AM|LINK
Hi urenjoy,
Does this text-decoration is supported by chrome,FF and IE 9?
thanks for your reply.
Best Regards.
Edit1: seems NOT
cenk1536
Contributor
2501 Points
2115 Posts
Re: Blinking Text on Screen?
May 17, 2012 09:39 AM|LINK
hi kedarrkulkarni,
Thanks for your reply. Can I use it from code behind?
Best Regards.
kedarrkulkar...
All-Star
34459 Points
5543 Posts
Re: Blinking Text on Screen?
May 17, 2012 09:44 AM|LINK
what exactly u want to do from codebehind? u can set jquery blink code on client side.... using a class name jquery selector...
from codebehind, u can set a class name for a span/div so that that text starts blinking.
note: <blink> tag is not supported in most of browsers
hope this helps...
KK
Please mark as Answer if post helps in resolving your issue
My Site
cenk1536
Contributor
2501 Points
2115 Posts
Re: Blinking Text on Screen?
May 17, 2012 09:46 AM|LINK
I want to blink a text according to a specific data coming from database.
kedarrkulkar...
All-Star
34459 Points
5543 Posts
Re: Blinking Text on Screen?
May 17, 2012 10:03 AM|LINK
download this jquery plugin and refer in u r aspx code...
http://www.antiyes.com/jquery-blink-plugin
then, in .aspx page, add code like this
<script src="jquery-1.3.2.min.js" language="javascript" type="text/javascript"></script> <script src="jquery-blink.js" language="javscript" type="text/javascript"></script> <script type="text/javascript" language="javascript"> $(document).ready(function() { $('.blink').blink(); // default is 500ms blink interval. //$('.blink').blink({delay:100}); // causes a 100ms blink interval. }); </script> <div runat="server" id="blinkText" > </div>now, in the codebehind, get database values...
if required condition matches then set blinkText div's class name to "blink" else set it to blank... like this
if(condtion matches) blinkText.Attributes.Add("class","blink"); else blinkText.Attributes.Add("class","");add text to be blinking inside div... (either in design or from codebehind using blinkText.InnerHtml="text")
this will add class="blink" to div when u want to blink the text inside it
hope this helps...
KK
Please mark as Answer if post helps in resolving your issue
My Site
asteranup
All-Star
30184 Points
4906 Posts
Re: Blinking Text on Screen?
May 17, 2012 10:05 AM|LINK
Hi,
Try few posts here-
http://delicious.com/anupdg/blink
Anup Das Gupta
Mark as Answer if you feel so. Visit My Blog