![]() |
![]() |
||||||
|
|||||||
| Tags: preloader |
![]() |
|
|||
|
Hello
I found this tutorial on how to creat a preloader "http://www.lukamaras.com/tutorials/preloaders/bas ic-loading-bar-preloader.html" I tried doing as mentioned in the tutorial but I have 2 problems.. 1. My site loads before the preloader has completed. Click http://img.photobucket.com/albums/v1...er/problem.jpg to view it. 2. The preloader is always visible. I even added an extra line to the code (in bold). [Q]loadingBar.onEnterFrame = function() { kBytesLoaded = this._parent.siteLoader.getBytesLoaded() / 1024; kBytesTotal = this._parent.siteLoader.getBytesTotal() / 1024; percentage = Math.round(kBytesLoaded / kBytesTotal * 100); this._xscale = percentage; if (percentage == 99) { delete this.onEnterFrame; loadingBar._visible = false; } }[/Q] Any idea how to make it work? Thanks |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise