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
Post a Comment