Description:
In previous posts I explained jQuery Get number of facebook likes, shares count for url, jQuery Google Currency Converter API Example, jQuery Highlight gridview rows on mouseover and many articles relating to jQuery, modal popup, asp.net. Now I will explain how to add blinking effect to text using jQuery inasp.net.
In previous posts I explained jQuery Get number of facebook likes, shares count for url, jQuery Google Currency Converter API Example, jQuery Highlight gridview rows on mouseover and many articles relating to jQuery, modal popup, asp.net. Now I will explain how to add blinking effect to text using jQuery inasp.net.
To implement this functionality we need to write the code like as shown below
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Add blinking effect to text in jQuery</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script>
<script type="text/javascript">
$(function() {
blinkeffect('#txtblnk');
})
function blinkeffect(selector) {
$(selector).fadeOut('slow', function() {
$(this).fadeIn('slow', function() {
blinkeffect(this);
});
});
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="txtblnk"> <p><strong><font color="red">Welcome to Aspodtnet-Suresh.com</font></strong></p> </div>
</form>
</body>
</html>
|
Live Demo
Check below text for live demo
Welcome to Aspodtnet-Suresh.com
|
No comments:
Post a Comment