The following code is to blink the text using jquery
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.1.min.js"></script> <div id="msg"> <strong><font color="red">Awesome Gallery By Anil Labs</font></strong></p> </div> <script type="text/javascript" > function blink(selector){ $(selector).fadeOut('slow', function(){ $(this).fadeIn('slow', function(){ blink(this); }); }); } blink('#msg'); </script>
ThanQ Anil kumar
ReplyDeleteWorks perfectly! Exactly the thing I wanted, only need to modify the effect. Thanx a lot!
ReplyDeleteTis' cool but doesn't work in Safari :)
ReplyDeleteShould remove the extra backslash on the end of "<script text=..".
ReplyDelete*"<script type=..."
ReplyDeletethanks a lot dude
ReplyDeleteThanks for acript
ReplyDeleteNice one
THANKS WORKING WELL
ReplyDeletebut its not working when we put the div in the body why???
ReplyDeleteDear Anonymous, if you want to but the div at the body, then instead of blink('#msg'); , add the following code :
ReplyDeletejQuery(document).ready(function() {
blink('#msg');
});
The thing is that you are trying to call div #msg at the head section and it does not exist yet as it is at the body tag, my code will call the div after the entire page load.
Thanks Anil...
how to stop the function after certain time
ReplyDeleteThank you Anil Kumar
ReplyDeletesetInterval(function() {
ReplyDeletejQuery('.blink').fadeOut('slow', function(){
jQuery(this).fadeIn('slow');
});
}, 5000);
hii this is kriti and i am having a query...
ReplyDeleteHow to search a string for a specified value, and returns the text of the found value and to blink it?
How to blink a particular letter in the word using jquery ?
ReplyDeleteFor example :-
Word is :- Awesome
letter to blink is :- s
Please suggest possible solutions .
Thanks in advance.
kriti: i am also having the same query.
ReplyDeleteThis works. Thanks Anil and keep up the good work!!
ReplyDeleteRecursive calling the method (blink) without return.is it correct?
ReplyDeleteamazing trick & excellent website.
ReplyDeleteOr simply:
ReplyDeletefunction blink(selector) {
$(selector).fadeToggle('slow', function(){ blink(this); });
}
how to stop this blink
ReplyDeletehai am doing a project using html n jsp as a fresher i am not getting much idea plz help me frnd , n dis s my id aishukutty2@gmail.com plz within in today ..........))))))))))
ReplyDeleteThanks i benefited so much from this post. How do i make it blink a bit more slower. Pls email me at cryswen@gmail.com. i am most grateful. Welldone friend.
ReplyDeleteWould a recursive approach like this fill up the call stack?
ReplyDelete