<div id="loadDiv" style="border:1px solid black;background-color:white;padding:5px;position:absolute;top:10px;left:10px;width:200px;height:20px;"></div>
<script>
function $(id) { return document.getElementById(id);}
function loading () {
var div = $('loadDiv'), str = 0, strs = '请您稍候片刻...';
var mixTimer = setInterval(function (){
div.innerHTML = strs.substring(0, str) + '_';
str = str > strs.length - 2 ? 0 : str + 1;
}, 300);
}
loading();
</script>
----------