Good evening all night

<script type="text/javascript"> $(document).ready(function () { $("a").click(function() { var id = $(this).attr('id'); if(id != '1' && id != '15'){ dlinna = id.length; if(dlinna < '20'){ $.ajax({ url: "adjagz.php", type: "POST", data: {id: id}, success: function(text) { $("#text").html(text); } }); } else{ $.ajax({ url: "adjagz.php", type: "POST", data: {id: id}, success: function(text) { $("#tsst").html(text); } }); } } }); }); </script><!--ajax--> 

Actually copile oil from hashcode. Click the desired link, there is a POST request to adjagz.php. Once everything is done, it is updated. <Div id = \ "text \"> </ div> is only interested in - #text.

Is it possible to somehow change the mouse cursor, so that you can see what the computer is thinking? or what gifku be near the cursor to do (it is more often seen in the internet)

    2 answers 2

    style

     .some { cursor:wait; } 

    through js you pull up this class on body, and that's it ..

    • Oh, class, I can register, I would know how to do the rest. I understand you need some kind of commands before success and after register? - frank
     $("a").click(function() { .... if(id != '1' && id != '15'){ $('body').addClass('some'); .... success:function(text) { $('body').removeClass('some'); .... } .... });