Thank you for offering your assistance, but I was able to discover my own solution that I believe works even more effectively than my initial idea. If you're interested, you can revisit the page to see it in action. However, I'll explain what I did here. Essentially, I simply included...
<style type="text/css">
.load {
background-image: url('img/ajax-loader2.gif');
background-repeat: no-repeat;
background-position: bottom right;
}
#printout {
border: 1px black dotted;
font-size: 12pt;
text-align: left;
padding: 10px;
height: 100px;
width: 400px;
}
</style>
After that, I proceeded with...
$("button").click(function () {
var v = $("select").attr("value");
--> $("#printout").addClass("load"); <--
$.get("randloot.php", { "table" : v }, function(data) {
--> $("#printout").removeClass(); <--
if(data.roll != 0) {
$('#printout').text("Roll - " + data.roll +
"\nArmor - " + data.armor +
"\nPrice - " + data.price + "gp");
}
else
$('#printout').text("Oops");
}, "json");
});
In my opinion, the final outcome is refined and inconspicuous. It may consist of a few additional lines compared to other mentioned solutions, but this approach can be adapted to numerous scenarios with minimal modifications.