This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title></title> | |
<script src="http://code.jquery.com/jquery.js" type="text/javascript"></script> | |
<style> | |
.loadinggif | |
{ | |
background: url('http://www.hsi.com.hk/HSI-Net/pages/images/en/share/ajax-loader.gif') no-repeat right center; | |
} | |
</style> | |
</head> | |
<body> | |
<div id='inputsource' /> | |
<br> | |
<button onclick="$('#inputsource').addClass('loadinggif');">Show Loading</button> | |
<br> | |
<button onclick="$('#inputsource').removeClass('loadinggif');">Hide Loading</button> | |
</body> | |
</html> |