Лучший Ответ Kess , 24 December 2013 - 08:03
Yes, of course.
First, get yourself an animated image. There are a lot of websites where you can get one. For example, http://preloaders.net/en/circular
For example, I've made a 32x32 icon with transparent background - http://kess.com.ua/preloader.gif
Put it in the images folder of your website. Then add the following line to the script before tab.load:
tab.html('<p style="text-align: center;"><img src="/images/preloader.gif" alt="" /></p>');
In my case it looks like this:
targeturl = currenturl + '?tmpl=component&jbquickview=loaded' + ' #' + tabid; tab.html('<p style="text-align: center;"><img src="/images/preloader.gif" alt="" /></p>'); tab.load(targeturl);Перейти к сообщению