Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > tedious refresh effect

Reply
Thread Tools

tedious refresh effect

 
 
Marco
Guest
Posts: n/a
 
      02-08-2006
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:

<META HTTP-EQUIV="REFRESH" CONTENT="7">

and this script to have a fade effect

<SCRIPT>
<!--
/*Background fade by Dave Methvin,
Windows Magazine
May be used/modified if credit line is
retained*/
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;
RunFader();
}
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 ) {
setTimeout('RunFader()',50);
}
step++;
}

BgFade(0x00,0x00,0x00, 0xFF,0xFF,0xFF,10);
//-->
</SCRIPT>

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

How can I solve this problem?
thanks

marco

 
Reply With Quote
 
 
 
 
saz
Guest
Posts: n/a
 
      02-08-2006
In article < .com>,
says...
> 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:
>
> <META HTTP-EQUIV="REFRESH" CONTENT="7">
>
> and this script to have a fade effect
>
> <SCRIPT>
> <!--
> /*Background fade by Dave Methvin,
> Windows Magazine
> May be used/modified if credit line is
> retained*/
> 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;
> RunFader();
> }
> 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 ) {
> setTimeout('RunFader()',50);
> }
> step++;
> }
>
> BgFade(0x00,0x00,0x00, 0xFF,0xFF,0xFF,10);
> //-->
> </SCRIPT>
>
> but when the page reloads it disappears for a while and it is really
> tedious.
>
> How can I solve this problem?
> thanks
>
> marco
>
>

You can fix it by taking away the fade effect.

Personally, I leave websites that have fade-ins because I find it
annoying.
 
Reply With Quote
 
 
 
 
Neredbojias
Guest
Posts: n/a
 
      02-09-2006
With neither quill nor qualm, Marco quothed:

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


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

> How can I solve this problem?


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

--
Neredbojias
Contrary to popular belief, it is believable.
 
Reply With Quote
 
Marco
Guest
Posts: n/a
 
      02-09-2006
Maybe I did not explain me well: I meant I have to remove the time
while the page reloads.
I tried the fade effect to hide the reload effect but it is
unsuccesful.
I'm thinking to reload the page in background to increase reload time.
What do you think of backgroung reloading? do you have exaples?

thanks

Marco

 
Reply With Quote
 
Marco
Guest
Posts: n/a
 
      02-09-2006
Maybe the answer is preloading? is it possible to preload a page?

Marco

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tedious Login During Development Jonathan Wood ASP .Net 2 11-09-2007 01:48 AM
Tedious Question =?Utf-8?B?SCBL?= MCSE 81 02-07-2007 07:21 PM
Automating a tedious web browsing task Dave Javascript 1 11-24-2006 03:07 PM
is it so tedious to update a record ad ASP .Net 4 03-29-2005 05:56 PM
Why are excruciatingly tedious movies critically acclaimed? V.S. DVD Video 15 01-08-2004 10:55 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57