KDragon Posted April 24, 2006 Share Posted April 24, 2006 I've got this code that does pretty much what I would expect it to do, which is print out the same text over and over, darkening each line of text from white to black. Now that I got that to work I was going to move on to building an algorithm to fade the same line of text from white to black. But i realize that part of my algorithm would probably be printing out the text at the color it's at and then replace it with the next darkest shade of text. So before I go about writing this next step of my code, i would just like to know if it's even possible to do this with purely PHP and no help from any javascript etc. Basically, is it possible to echo something out to the page for some period of time, remove it and replace with something else?? Quote Link to comment https://forums.phpfreaks.com/topic/8237-fading-text/ Share on other sites More sharing options...
redbullmarky Posted April 24, 2006 Share Posted April 24, 2006 [!--quoteo(post=367873:date=Apr 24 2006, 08:06 AM:name=KDragon)--][div class=\'quotetop\']QUOTE(KDragon @ Apr 24 2006, 08:06 AM) [snapback]367873[/snapback][/div][div class=\'quotemain\'][!--quotec--]I've got this code that does pretty much what I would expect it to do, which is print out the same text over and over, darkening each line of text from white to black. Now that I got that to work I was going to move on to building an algorithm to fade the same line of text from white to black. But i realize that part of my algorithm would probably be printing out the text at the color it's at and then replace it with the next darkest shade of text. So before I go about writing this next step of my code, i would just like to know if it's even possible to do this with purely PHP and no help from any javascript etc. Basically, is it possible to echo something out to the page for some period of time, remove it and replace with something else??[/quote]yes, if you wanted a page reload in between each shade of the colour fade....very unlikely. otherwise, nope. your only and best way is via javascript. Quote Link to comment https://forums.phpfreaks.com/topic/8237-fading-text/#findComment-30017 Share on other sites More sharing options...
Barand Posted April 24, 2006 Share Posted April 24, 2006 other options - flash - java applet Quote Link to comment https://forums.phpfreaks.com/topic/8237-fading-text/#findComment-30242 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.