tedious refresh effect

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
hi all!
I've done a web chat using javascript/html and I have a question: I've
based my chat on reloading a page that fetches data from a db.
I set up the page with this tag:


and this script to have a fade effect

/*Background fade by Dave Methvin,
Windows Magazine
May be used/modified if credit line is
function BgFade(red1, grn1, blu1, red2,
    grn2, blu2, steps) {
    sred = red1; sgrn = grn1; sblu = blu1;
    ered = red2; egrn = grn2; eblu = blu2;
    inc = steps;
    step = 0;
function RunFader() {
    var epct = step/inc;
    var spct = 1 - epct;
    document.bgColor =
    Math.floor(sred * spct + ered *
    epct)*256*256 +
    Math.floor(sgrn * spct + egrn * epct)*256 +
    Math.floor(sblu * spct + eblu * epct);
    if ( step < inc ) {

BgFade(0x00,0x00,0x00, 0xFF,0xFF,0xFF,10);

but when the page reloads it disappears for a while and it is really

How can I solve this problem?


Re: tedious refresh effect

marco.strullato@gmail.com says...
Quoted text here. Click to load it
You can fix it by taking away the fade effect.  

Personally, I leave websites that have fade-ins because I find it

Re: tedious refresh effect

With neither quill nor qualm, Marco quothed:

Quoted text here. Click to load it

Most "dynamic" effects _are_ tedious once you've seen them a few times.

Quoted text here. Click to load it

Forget it and use some css styling for candy-striping if you want.

Contrary to popular belief, it is believable.

Site Timeline