Preloader with a difference

i’ve uploaded a mockup of nothing like the design of what i want, but with the basic setup.

  1. I want two textboxes to display a) percentage loaded b) percentage left to load
    and 2) an 8 digit random number to be generated every time the page is loaded.

Every time the display thingy flashes, I want the % to be updated and ONLY when it is flashing the % be updated.

Could someone please code this and upload it again, I cannot find any tutorials or threads that help with this…

Thanks all,
ignusb