FadeOut this jQuery script? -


best,

how can fade out this, if ends? not show content, if person got message. googled it, , couldn't find it.

this code:

<script>     $(document).ready(function () {         setinterval(function() {             $.get("<?php echo $host_url; ?>/system/globalmsg.php", function (result) {                 $('#globms').hide().html(result).fadein(800);             })         }, 5000);     }) </script> 

thanks! ;)

try following

<script>     $(document).ready(function () {         setinterval(function() {             $.get("<?php echo $host_url; ?>/system/globalmsg.php", function (result) {                 $('#globms').hide().html(result).fadein(800).fadeout(500);             })         }, 5000);     }) </script> 

you can change fadeout parameter value want.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -