So I just started learning Javascript and jQuery at the same time, and it seems easy.
Now I am making a function that shows a loading image (I made mine on http://www.ajaxload.info/) but I want something that’s more cool, like maybe an image that changes every time…
Also, sometimes my loading image appears under other stuff I have no clue why so I am trying to fix that problem, if you have any hints please let me know.
Here is what I have now:
...
<img id="loading" src="loading.gif" />
...
<script>
function load(){
$("#loading").fadeToggle();
}
</script>
I have done this with my projects, very interesting idea! So here’s how i do it.
Of course you can tweak this as you wish and i am sure there are lots of stuff you can do to make it more beautiful but here is what you can do with minimal configuration.
CSS :
HTML :
Javascript (jQuery) :
BTW, for preloaders i use this site : http://preloaders.net/
I am sure you will like it! It’s far better than the one you have.
So basically just call the changePreloader() when you want to change it, and well for the first function you know how to use it already 🙂